Am Dienstag 16 März 2010 17:52:37 schrieb Viktor TARASOV: > For me it's quite useful at the developing stage . > > Probably the debug line content can be made configurable? > I mean to make optional 'pid', 'time', 'process name', 'line', ...
the log.c side of this would be quite easy to implement I think. we always have the context, so we could check new variables ctx->opt_whatever and see what to print on each debug line. the complex side would be config file parsing. we could create a new complex option like "debug_info = file,line,function,time,pid,process" and encode that as many small options in the context or one option with a bit field. debug side would be easy to implement. but config wise, this looks hard. we could instead use many smalls debug_include_filename = yes/no debug_include_line = yes/no debug_include_function = yes/no ... but that is ugly I think, but still possible and easier to implement. Regards, Andreas _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel