Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 551 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 551 Bytes

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.