|
librsync
2.3.2
|
logging and debugging output. More...
Go to the source code of this file.
Macros | |
| #define | MY_NAME "librsync" |
Functions | |
| static void | rs_log_va (int level, char const *fn, char const *fmt, va_list va) |
| void | rs_trace_to (rs_trace_fn_t *new_impl) |
| Set the destination of trace information. More... | |
| void | rs_trace_set_level (rs_loglevel level) |
| Set the least important message severity that will be output. More... | |
| void | rs_log0 (int level, char const *fn, char const *fmt,...) |
| void | rs_trace_stderr (rs_loglevel UNUSED(level), char const *msg) |
| int | rs_supports_trace (void) |
| Check whether the library was compiled with debugging trace. More... | |
Variables | |
| rs_trace_fn_t * | rs_trace_impl = rs_trace_stderr |
| int | rs_trace_level = RS_LOG_INFO |
| static const char * | rs_severities [] |
| Log severity strings, if any. More... | |
logging and debugging output.
Definition in file trace.c.
| void rs_trace_to | ( | rs_trace_fn_t * | new_impl | ) |
Set the destination of trace information.
Set trace callback.
The callback scheme allows for use within applications that may have their own particular ways of reporting errors: log files for a web server, perhaps, and an error dialog for a browser.
| void rs_trace_set_level | ( | rs_loglevel | level | ) |
Set the least important message severity that will be output.
| int rs_supports_trace | ( | void | ) |
Check whether the library was compiled with debugging trace.
If this returns false, then trying to turn trace on will achieve nothing.
|
static |
Log severity strings, if any.
Must match ordering in rs_loglevel.
1.8.14