Module logging

Source
Expand description

Logging for Alacritty.

The main executable is supposed to call initialize() exactly once during startup. All logging messages are written to stdout, given that their log-level is sufficient for the level configured in cli::Options.

StructsΒ§

Logger
OnDemandLogFile πŸ”’

ConstantsΒ§

ALACRITTY_EXTRA_LOG_TARGETS_ENV πŸ”’
Name for the environment variable containing extra logging targets.
ALACRITTY_LOG_ENV πŸ”’
Name for the environment variable containing the log file’s path.
ALLOWED_TARGETS πŸ”’
List of targets which will be logged by Alacritty.
LOG_TARGET_CONFIG
Logging target for config error messages.
LOG_TARGET_IPC_CONFIG
Logging target for IPC config error messages.
LOG_TARGET_WINIT
Logging target for winit events.

FunctionsΒ§

create_log_message πŸ”’
extra_log_targets πŸ”’
User configurable extra log targets to include.
initialize
Initialize the logger to its defaults.
is_allowed_target πŸ”’
Check if log messages from a crate should be logged.