Module log

Module log 

Source

Modules§

color_log
hexplay
This crate provides a way to Display a byte slice as it is commonly done in a hex-editor.
impls
levels
prelude

Macros§

log_debug
Format and log message with Level::Debug
log_error
Format and log message with Level::Error
log_info
Format and log message with Level::Info
log_trace
Format and log message with Level::Trace
log_warn
Format and log message with Level::Warn

Structs§

Buffer
Write colored text to memory.
ColorHexView
HexViewBuilder
A builder for the HexView struct.

Enums§

Level
An enum representing the available verbosity levels of the logger.
LevelFilter
An enum representing the available verbosity level filters of the logger.

Traits§

ColoLogTrace
Sink
A log sink trait that can be installed into the log subsystem using the [pipe] function and will receive all log messages.

Functions§

format_hex
Returns a string formatted as a hex data dump of the supplied slice argument.
format_hex_with_colors
Formats a hex data dump to contain color ranges
log_level_enabled
Returns true if the current log level is below the currently set LevelFilter
set_colors_enabled
set_log_level
Enable filtering of log messages using the LevelFilter
style
Wraps an object for formatting for styling.
trace_hex
Prints (using log_trace) a data slice formatted as a hex data dump.