Do some promotions on log4c lib for personal requirements
Log4c is an open source lib.
Promotions :
- 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.