Enhance logging system:
* Removes internal DBG/WARN/ERR macros (but keep them in examples); * Removes almost all DEBUG define references; * Uses the flexible log4c library to log all messages.
This commit is contained in:
parent
580768a489
commit
e8eec583ed
14 changed files with 357 additions and 195 deletions
25
log4crc
Normal file
25
log4crc
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE log4c SYSTEM "">
|
||||
|
||||
<log4c version="1.2.1">
|
||||
<config>
|
||||
<bufsize>0</bufsize>
|
||||
<debug level="1"/>
|
||||
<nocleanup>0</nocleanup>
|
||||
</config>
|
||||
|
||||
<!-- root category ========================================= -->
|
||||
<category name="root" priority="trace"/>
|
||||
<category name="libnfc" priority="trace"/>
|
||||
|
||||
<!-- default appenders ===================================== -->
|
||||
<appender name="stdout" type="stream" layout="basic"/>
|
||||
<appender name="stderr" type="stream" layout="dated"/>
|
||||
<appender name="syslog" type="syslog" layout="basic"/>
|
||||
|
||||
<!-- default layouts ======================================= -->
|
||||
<layout name="basic" type="basic"/>
|
||||
<layout name="dated" type="dated"/>
|
||||
|
||||
<category name="libnfc" priority="trace" appender="stdout"/>
|
||||
</log4c>
|
||||
Loading…
Add table
Add a link
Reference in a new issue