[−][src]Crate log_ndc
Re-exports
pub extern crate log; |
Macros
ndc_debug | Logs a message at the debug level. |
ndc_error | Logs a message at the error level. |
ndc_info | Logs a message at the info level. |
ndc_log | The standard logging macro. |
ndc_trace | Logs a message at the trace level. |
ndc_warn | Logs a message at the warn level. |
Structs
SetGuard |
Enums
Ndc | Diagnostic context |
Functions
clear | Clear diagnostic context |
get | Read a thread-local context with provided callback. |
get_copy | Get a copy of the string in thread-local context. Empty string is returned when there's no context |
get_raw | Get a copy of the raw NDC object. Return NDC with empty string if unset. |
push | Set thread-local context and return a guard which sets previous value on drop. |
replace | Set thread-local context to a given string and return previously stored value. |
set | Set thread-local context to a given string. |