mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-05-28 08:06:16 +00:00
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:
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>
|
||||
Reference in New Issue
Block a user