introduce logging api and convert all library output to use it
authorAndy Green <andy@warmcat.com>
Thu, 10 Jan 2013 11:50:35 +0000 (19:50 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 10 Jan 2013 14:16:37 +0000 (22:16 +0800)
commit43db045ff82678cb3b9ab93d822a743459172874
treea2b297a252c84e655241bac413849aace5bba85b
parent4550f1d7b5e1850b4de6fab0d7155609a302fbd6
introduce logging api and convert all library output to use it

 - multiple debug context calls lwsl_ err, warn, debug, parser, ext, client

 - api added to set which contexts output to stderr using a bitfield log_level

 - --disable-debug on configure removes all code that is not err or warn severity

 - err and warn contexts always output to stderr unless disabled by log_level

 - err and warn enabled by default in log_level

Signed-off-by: Andy Green <andy@warmcat.com>
12 files changed:
configure.ac
lib/base64-decode.c
lib/client-handshake.c
lib/extension-deflate-frame.c
lib/extension-deflate-stream.c
lib/extension-x-google-mux.c
lib/handshake.c
lib/libwebsockets.c
lib/libwebsockets.h
lib/parsers.c
lib/private-libwebsockets.h
libwebsockets-api-doc.html