文件名称:zlog-latest-stable.tar
介绍说明--下载内容均来自于网络,请自行研究使用
zlog是一个高可靠性、性能、线程安全、灵活、概念清晰的纯C日志函数库。
事实上,在C的世界里面没有特别好的日志函数库(就像JAVA里面的的log4j,或者C++的
log4cxx)。C程序员都喜欢用自己的轮子。printf就是个挺好的轮子,但没办法通过配置改变
日志的格式或者输出文件。syslog是个系统级别的轮子,不过速度慢,而且功能比较单调。
所以我写了zlog。
zlog在效率、功能、安全性上大大超过了log4c,并且是用c写成的,具有比较好的通用性。
zlog有这些特性:
. syslog分类模型,比log4j模型更加直接了当
. 日志格式定制,类似于log4j的pattern layout
. 多种输出,包括动态文件、静态文件、stdout、stderr、syslog、用户自定义输出函数
. 运行时手动、自动刷新配置文件(同时保证安全)
. 高性能,在我的笔记本上达到72 000条日志每秒, 大概是syslog(3)配合rsyslogd的200倍
速度
. 用户自定义等级
. 多线程和多进程环境下保证安全转档
. 精确到微秒
. 简单调用包装dzlog(一个程序默认只用一个分类)
. MDC,线程键-值对的表,可以扩展用户自定义的字段
. 自诊断,可以在运行时输出zlog自己的日志和配置状态
. 不依赖其他库,只要是个POSIX系统就成(当然还要一个C99兼容的vsnprintf)zlog is a reliable, high ecent, thread safe,
exsible, clear model, pure c logging
library
Actually, in the c world there is NO good logging library for application like
logback in java or log4cxx in c++. printf can work, but can not be easily redirected
or reformat, syslog is slow and is designed for system use.
So I write zlog.
It is faster, safer and more powerful than log4c. So it can be widely used.
zlog has feartures below:
syslog model, better than log4j model
log format customization
multiple output, include static le path, dynamic le path, stdout, stderr,
syslog, user-dened ouput
runtime mannully or automaticlly refreash congure(safely)
high ecieny, about 200 times faster than syslog(3) with rsyslogd
user-dened log level
safely rotate log le on multiple-process or multiple-threads condition
accurate to microseconds
dzlog, a default category log API for easy use
MDC, a log4j style key-value map-zlog is a reliable, high ecent, thread safe,
exsible, clear model, pure c logging
library
Actually, in the c world there is NO good logging library for application like
logback in java or log4cxx in c++. printf can work, but can not be easily redirected
or reformat, syslog is slow and is designed for system use.
So I write zlog.
It is faster, safer and more powerful than log4c. So it can be widely used.
zlog has feartures below:
syslog model, better than log4j model
log format customization
multiple output, include static le path, dynamic le path, stdout, stderr,
syslog, user-dened ouput
runtime mannully or automaticlly refreash congure(safely)
high ecieny, about 200 times faster than syslog(3) with rsyslogd
user-dened log level
safely rotate log le on multiple-process or multiple-threads condition
accurate to microseconds
dzlog, a default category log API for easy use
MDC, a log4j style key-value map
事实上,在C的世界里面没有特别好的日志函数库(就像JAVA里面的的log4j,或者C++的
log4cxx)。C程序员都喜欢用自己的轮子。printf就是个挺好的轮子,但没办法通过配置改变
日志的格式或者输出文件。syslog是个系统级别的轮子,不过速度慢,而且功能比较单调。
所以我写了zlog。
zlog在效率、功能、安全性上大大超过了log4c,并且是用c写成的,具有比较好的通用性。
zlog有这些特性:
. syslog分类模型,比log4j模型更加直接了当
. 日志格式定制,类似于log4j的pattern layout
. 多种输出,包括动态文件、静态文件、stdout、stderr、syslog、用户自定义输出函数
. 运行时手动、自动刷新配置文件(同时保证安全)
. 高性能,在我的笔记本上达到72 000条日志每秒, 大概是syslog(3)配合rsyslogd的200倍
速度
. 用户自定义等级
. 多线程和多进程环境下保证安全转档
. 精确到微秒
. 简单调用包装dzlog(一个程序默认只用一个分类)
. MDC,线程键-值对的表,可以扩展用户自定义的字段
. 自诊断,可以在运行时输出zlog自己的日志和配置状态
. 不依赖其他库,只要是个POSIX系统就成(当然还要一个C99兼容的vsnprintf)zlog is a reliable, high ecent, thread safe,
exsible, clear model, pure c logging
library
Actually, in the c world there is NO good logging library for application like
logback in java or log4cxx in c++. printf can work, but can not be easily redirected
or reformat, syslog is slow and is designed for system use.
So I write zlog.
It is faster, safer and more powerful than log4c. So it can be widely used.
zlog has feartures below:
syslog model, better than log4j model
log format customization
multiple output, include static le path, dynamic le path, stdout, stderr,
syslog, user-dened ouput
runtime mannully or automaticlly refreash congure(safely)
high ecieny, about 200 times faster than syslog(3) with rsyslogd
user-dened log level
safely rotate log le on multiple-process or multiple-threads condition
accurate to microseconds
dzlog, a default category log API for easy use
MDC, a log4j style key-value map-zlog is a reliable, high ecent, thread safe,
exsible, clear model, pure c logging
library
Actually, in the c world there is NO good logging library for application like
logback in java or log4cxx in c++. printf can work, but can not be easily redirected
or reformat, syslog is slow and is designed for system use.
So I write zlog.
It is faster, safer and more powerful than log4c. So it can be widely used.
zlog has feartures below:
syslog model, better than log4j model
log format customization
multiple output, include static le path, dynamic le path, stdout, stderr,
syslog, user-dened ouput
runtime mannully or automaticlly refreash congure(safely)
high ecieny, about 200 times faster than syslog(3) with rsyslogd
user-dened log level
safely rotate log le on multiple-process or multiple-threads condition
accurate to microseconds
dzlog, a default category log API for easy use
MDC, a log4j style key-value map
(系统自动生成,下载前可以参看下载内容)
下载文件列表
23825765zlog-latest-stable.tar