Re-exports§
pub extern crate time;
Modules§
- _core
- The Rust Core Library
- fail_
methods - logger
Macros§
- __
lazy_ static_ create - bail
- debug
- Logs a message at the debug level.
- ensure
- Exits a function early with an
Error
if the condition is not satisfied. - error
- Logs a message at the error level.
- format_
err - Constructs an
Error
using the standard string interpolation syntax. - info
- Logs a message at the info level.
- lazy_
static - log
- The standard logging macro.
- log_
enabled - Determines if a message logged at the specified level in that module will be logged.
- log_
process - run_
and_ measure - trace
- Logs a message at the trace level.
- warn
- Logs a message at the warn level.
Structs§
- App
- Backtrace
- A
Backtrace
. - Causes
- A iterator over the causes of a
Fail
- Compat
- A compatibility wrapper around an error type from this crate.
- Context
- An error with context around it.
- Cumulative
Error - Error
- The
Error
type, which can contain any failure. - LogLocation
- The location of a log message.
- LogMetadata
- Metadata about a log message.
- LogRecord
- The “payload” of a log message.
- MaxLog
Level Filter - A token providing read and write access to the global maximum log level filter.
- SetLogger
Error - The type returned by
set_logger
ifset_logger
has already been called. - Shutdown
Logger Error - The type returned by
shutdown_logger_raw
ifshutdown_logger_raw
has already been called or ifset_logger_raw
has not been called yet. - Sync
Failure - Wrapper for
std
errors to make themSync
.
Enums§
- LogLevel
- An enum representing the available verbosity levels of the logging framework
- LogLevel
Filter - An enum representing the available verbosity level filters of the logging framework.
- StdResult
Result
is a type that represents either success (Ok
) or failure (Err
).
Traits§
- AsFail
- The
AsFail
trait - Cumulative
Error Collector - Error
Methods - Fail
- The
Fail
trait. - Fail
Methods - Lazy
Static - Support trait for enabling a few common operation on lazy static values.
- Log
- A trait encapsulating the operations required of a logger
- Option
Methods - Result
Ext - Extension methods for
Result
. - Result
Methods - __Deref
- Used for immutable dereferencing operations, like
*v
.
Functions§
- err_msg
- Constructs a
Fail
type from a string. - initialize
- Takes a shared reference to a lazy static and initializes it if it has not been already.
- max_
log_ level - Returns the current maximum log level.
- set_
logger - Sets the global logger.
- set_
logger_ ⚠raw - Sets the global logger from a raw pointer.
- shutdown_
logger - Shuts down the global logger.
- shutdown_
logger_ raw - Shuts down the global logger.