List Info

Thread: Telling silc toolkit not to print errors.




Telling silc toolkit not to print errors.
user name
2007-06-01 18:53:59
Hello.

I'm working on a project that has a strict format for
errors printed to stderr. The toolkit, with the best of
intentions, is printing all sorts of errors that obviously
don't match our format.

How can I disable all library error reporting?

thanks,
MC
____________________________________________________________
___________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce

Archive: htt
ps://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/su
pport/faq/

Re: Telling silc toolkit not to print errors.
user name
2007-06-01 20:23:36
On 02/06/07, mal content <artifact.onegooglemail.com> wrote:
> Hello.
>
> I'm working on a project that has a strict format for
> errors printed to stderr. The toolkit, with the best
of
> intentions, is printing all sorts of errors that
obviously
> don't match our format.
>
> How can I disable all library error reporting?

Answered my own question: silc_log_set_callback().

MC
____________________________________________________________
___________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce

Archive: htt
ps://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/su
pport/faq/

Re: Telling silc toolkit not to print errors.
country flaguser name
Slovakia
2007-06-02 01:26:58
: > I'm working on a project that has a strict format
for
: > errors printed to stderr. The toolkit, with the best
of
: > intentions, is printing all sorts of errors that
obviously
: > don't match our format.
: >
: > How can I disable all library error reporting?
: 
: Answered my own question: silc_log_set_callback().
: 
Yes, that's the one.  The Toolkit never prints to stdout or
stderr with 
any other system except the SILC Log API so you can control
that easily.  
Exceptions to that rule are the various routines in 
lib/silcapputil/silcapputil.[ch].  As the name suggest they
are 
application utilities and most of the routines there are
directed to 
command line applications.  Those routines may print to
stdout or stderr 
directly.

	Pekka
____________________________________________________________
____________
 Pekka Riikonen                                 priikone at
silcnet.org
 Secure Internet Live Conferencing (SILC)       http://silcnet.org/
____________________________________________________________
___________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce

Archive: htt
ps://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/su
pport/faq/

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )