Skip to content

leoYY/log4c_Promotions

Repository files navigation

log4c_Promotions

Do some promotions on log4c lib for personal requirements

Log4c is an open source lib.

Promotions :

  1. add some macro definitions.

In details, I add some macro definitions in log4c.h, just like WARNING_LOG FATAL_LOG

Usually, you can do some initional in main.cpp/main.c like LOG_INIT()

some code....

LOG_UINIT()

WARNING_LOG(fmt,arg...),DEBUG_LOG(fmt,arg...),FATAL_LOG(fmt,arg...),NOTICE_LOG(fmt,arg...)

By using macro definitions as above, __FILE__ and __LINE__ will be found in log file.

About

Do some promotions on log4c lib for personal requirements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published