Crate tlogger

Source

Modules§

logger
prelude
styling

Macros§

add_log_levels
Adds log types to the list of log types to save to log files
ansi_rgb
Creates an ANSI escape code for RGB colors
ansi_rgb_bg
Creates an ANSI background color escape code
debug
Creates a single line message with a symbol timestamp, title, and message
debug_box
Creates a Magenta box with the given title and message
error
Creates a single line message with a symbol timestamp, title, and message
error_box
Creates a Red box with the given title and message
info
Creates a single line message with a symbol timestamp, title, and message
info_box
Creates a Cyan box with the given title and message
make_log
Creates a log message with the given title, symbol, and message
style_text
Applies styling to text using markdown-like syntax
success
Creates a single line message with a symbol timestamp, title, and message
success_box
Creates a Green box with the given title and message
warn
Creates a single line message with a symbol timestamp, title, and message
warn_box
Creates a Yellow box with the given title and message

Statics§

DEBUG
DEBUG is enabled by default
LOGGER
No log saving is used by default

Functions§

clear_log_levels
Clears the list of Log types to save to log files
create_styled_box
Creates a perfectly formatted box with the given title and message
customize_borders
Set your own border characters for formatting
customize_colors
Set your own colors for formatting
customize_symbols
Set your own symbols for formatting
get_borders
Get the current border characters
get_colors
Get the current colors
get_symbols
Get the current symbols
get_timestamp
Get the current timestamp in the format HH:MM:SS.SSS
init_logger
Initializes the logger
rgb_to_ansi
Converts RGB values to an ANSI escape code
rgb_to_ansi_bg
Converts RGB values to an ANSI background color escape code
set_debug
Debug is enabled by default
strip_ansi_codes
Strips ANSI escape codes from a string