Crate error_log

Source
Expand description

Library to store errors and log messages and display them later.

book: www.lesnake.xyz/opt/error_log

Macros§

log_debug
Attaches debug message to given ErrorLog
log_error
Attach error message to given ErrorLog
log_info
Attach information to given ErrorLog
log_trace
Attach trace message to given ErrorLog
log_warn
Attach warning to given ErrorLog
print
Prints to the standard output.
println
Prints to the standard output, with a newline.
return_err
Attach error to given ErrorLog and return it.
return_ok
Set ok value of given ErrorLog and return it
try_add
Macro to push_result() and return given ErrorLog if given Result is an Err
try_merge
Macro to merge_result() and return given ErrorLog if given Result is an Err

Structs§

Entry
Entry containing an Error of type E or an log message
ErrorLog
A Object to store multiple error messages and display them at once

Enums§

EntryContent
The Content of the Entry
FormatMode
How the error should be printed
LevelFilter
An enum representing the available verbosity level filters of the logger.

Traits§

DebugDisplay
A trait Combining debug and display bounds
EntriesExt
Additional functions for Entries

Type Aliases§

Entries
Type alias for Vec<Entry<E>>
ErrorLogBox
Pre-defined ErrorLog using Box<dyn DebugDisplay> as E