diff options
author | Toby Gray <toby.gray@realvnc.com> | 2013-07-09 16:05:39 +0100 |
---|---|---|
committer | Pete Batard <pete@akeo.ie> | 2013-08-09 01:55:04 +0100 |
commit | 9222a548bdea026c89057b65caf2832785ea702e (patch) | |
tree | 741eb234bb044a1f367fbd4f9393b117f647767c /msvc | |
parent | b50a433c164996761344efb6c90594de7906fe56 (diff) | |
download | libusb-9222a548bdea026c89057b65caf2832785ea702e.tar.gz |
Core: Add compile time option to use native OS logging facility
* This change makes it easier to debug issues in UI applications
which don't necessarily have a console connected to stderr.
* Outputting to the debugger shouldn't occur in normal situations so
this change has to be explicitly enabled by a build-time config flag.
* Uses OutputDebugString() on Windows platforms or the syslog facility
on other OSes, if available.
* Also align the report of configure defaults to autotool's.
Diffstat (limited to 'msvc')
-rw-r--r-- | msvc/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/msvc/config.h b/msvc/config.h index bb542c5..4b418db 100644 --- a/msvc/config.h +++ b/msvc/config.h @@ -25,6 +25,9 @@ /* Uncomment to start with debug message logging enabled */ // #define ENABLE_DEBUG_LOGGING 1 +/* Uncomment to enabling logging to system log */ +// #define USE_SYSTEM_LOGGING_FACILITY + /* type of second poll() argument */ #define POLL_NFDS_TYPE unsigned int |