/log4c_Promotions

Do some promotions on log4c lib for personal requirements.

Primary LanguageCGNU Lesser General Public License v2.1LGPL-2.1

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.