Crate starfall

Source

Modules§

astronomy
debug
size
trait

Macros§

debug
Logs a message at the debug level.
debug_3u8
Prints a 3-tuple of u8s, if at RUST_LOG=debug
debug_u8
Prints a u8 variable, if at RUST_LOG=debug
debug_var
Logs a variable and its value, if at RUST_LOG>=debug
error
Logs a message at the error level.
format_3u8
Formats a 3-tuple of u8s in useful ways.
format_u8
Formats a u8 variable in a useful way.
honeyholt_brief
Retrieves a human-friendly brief description.
honeyholt_define_brief
Implements a human-friendly brief display for a type.
honeyholt_define_verbose
Implements a human-friendly verbose display for a type.
honeyholt_verbose
Retrieves a human-friendly verbose description.
info
Logs a message at the info level.
info_3u8
Prints a 3-tuple of u8s, if at RUST_LOG=info
info_u8
Prints a u8 variable, if at RUST_LOG=info
info_var
Logs a variable and its value, if at RUST_LOG>=info
log
The standard logging macro.
log_enabled
Determines if a message logged at the specified level in that module will be logged.
print_var
Logs a variable and its value unconditionally
trace
Logs a message at the trace level.
trace_3u8
Prints a 3-tuple of u8s, if at RUST_LOG=trace
trace_enter
Traces entry into a function, if at RUST_LOG=trace
trace_exit
Traces exit from a function, if at RUST_LOG=trace
trace_u8
Prints a u8 variable, if at RUST_LOG=trace
trace_var
Logs a variable and its value, if at RUST_LOG=trace.
warn
Logs a message at the warn level.

Structs§

Metadata
Metadata about a log message.
MetadataBuilder
Builder for Metadata.
ParseLevelError
The type returned by from_str when the string doesn’t match any of the log levels.
Record
The “payload” of a log message.
RecordBuilder
Builder for Record.
SetLoggerError
The type returned by set_logger if set_logger has already been called.

Enums§

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

Constants§

STATIC_MAX_LEVEL
The statically resolved maximum log level.

Traits§

Log
A trait encapsulating the operations required of a logger.

Functions§

init_pretty_env_logger
Initializes the global logger with a pretty env logger.
logger
Returns a reference to the logger.
max_level
Returns the current maximum log level.
pretty_env_logger_builder
Create a new builder with the default environment variables.
set_boxed_logger
Sets the global logger to a Box<Log>.
set_logger
Sets the global logger to a &'static Log.
set_logger_racy
A thread-unsafe version of set_logger.
set_max_level
Sets the global maximum log level.
set_max_level_racy
A thread-unsafe version of set_max_level.

Attribute Macros§

named