On 13.01.2011 17:07, Andre Zepezauer wrote:
> Hello,
>
> OpenSC as a library doesn't need it's own logging system. Such things
> are better placed at application level. If debugging is necessary, then
> 'export OPENSC_DEBUG=9' + pkcs11-spy works for me.
>
> What would be the advantage of having logs of different instances of
> OpenSC intermixed in a single file?

To have shorter line in logs,
     "card.c:322:sc_unlock: called"
instead of
     "0x2b20d02e53f0 17:50:57.667 [opensc-explorer] card.c:322:sc_unlock: 
called"


Well, I do not see general enthusiasm, let's forget it.

> Regards
> Andre
Kind wishes,
Viktor.


> On Thu, 2011-01-13 at 16:14 +0100, Viktor TARASOV wrote:
>> Hi,
>>
>> what do you think about possibility to configure content of the log message.
>>
>> I mean something like this in 'opensc.conf':
>>
>> app default {
>>           log_level = debug;
>>           log debug  {
>>                   debug = 8;
>>                   debug_file = /tmp/opensc-debug.log;
>>
>>                   print_pid = false;     #default true
>>                   print_timestamp = false; #default true
>>                   print_app_name = false; #default true
>>           }
>> ...
>>
>>
>> Kind wishes,
>> Viktor.
>>
>>
>> _______________________________________________
>> opensc-devel mailing list
>> [email protected]
>> http://www.opensc-project.org/mailman/listinfo/opensc-devel
>


-- 
Viktor Tarasov  <[email protected]>

_______________________________________________
opensc-devel mailing list
[email protected]
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to