Commit bbf4463fdaece258637204cf47597374c253f3ef
1 parent
2534fb9e
create a static global logger as a default logger. For now this logs everything on stderr.
Showing
2 changed files
with
5 additions
and
0 deletions
... | ... | @@ -36,4 +36,7 @@ logStderr(void * this, TR_logger_level level, const char * const msg) |
36 | 36 | TR_INIT_IFACE(TR_Logger, logStderr); |
37 | 37 | TR_CREATE_CLASS(TR_LoggerStderr, TR_Logger, TR_IF(TR_Logger)); |
38 | 38 | |
39 | +TR_INSTANCE(TR_LoggerStderr, TR_debugConlogger, {TR_LOGGER_DEBUG}); | |
40 | +TR_Logger TR_logger = TR_INSTANCE_CAST(TR_Logger, TR_debugConlogger); | |
41 | + | |
39 | 42 | // vim: set ts=4 sw=4: | ... | ... |
Please
register
or
login
to post a comment