Topic: [SOLVED] Debug does not work libnfc-1.5.1 on Ubuntu

Hi there,
I am new in libnfc, I have installed a fresh copy of Ubuntu on my laptop and install libnfc-1.5.1. When I type ./configure --enable-debug it works fine, but when I ran the code or type

pawan@pawan-Inspiron-1420:~/nfc/dev/libnfc-1.5.1$ nfc-list -f --debug
nfc-list uses libnfc 1.5.1 (rexported)
Connected to NFC device: ACS ACR122U 00 00 / ACR122U103 - PN532 v1.6 (0x07)
1 ISO14443A passive target(s) found:
    ATQA (SENS_RES): 00  44 
       UID (NFCID1): 04  9c  77  ba  34  23  80 
      SAK (SEL_RES): 00 

Does not show the debug messages. Can you tell me what I need to do to see the debug messages?
Also how do I know if the debug mode is enabled successfully? I tried running the code from example folder and its running fine without showing any debug messages...
Thanks a lot.

Last edited by Nobody (2011-10-27 17:53:27)

Re: [SOLVED] Debug does not work libnfc-1.5.1 on Ubuntu

Hello,

libnfc 1.5.1 needs log4c to see debug traces.

BTW, if you don't want to install and configure log4c to have a powerful logging system, the development version of libnfc does now have a fallback if log4c is not found but DEBUG is enabled.

Romuald Conty

Re: [SOLVED] Debug does not work libnfc-1.5.1 on Ubuntu

Hello Conty,

I got another stupid question, after installed the log4c, how can i get the output log?

Regards

Re: [SOLVED] Debug does not work libnfc-1.5.1 on Ubuntu

log4c dependency have been dropped.

Romuald Conty