summaryrefslogtreecommitdiffstats
path: root/alacritty/src/logging.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/logging.rs')
-rw-r--r--alacritty/src/logging.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/alacritty/src/logging.rs b/alacritty/src/logging.rs
index a3833a5b..59303649 100644
--- a/alacritty/src/logging.rs
+++ b/alacritty/src/logging.rs
@@ -28,6 +28,9 @@ const ALACRITTY_LOG_ENV: &str = "ALACRITTY_LOG";
/// Logging target for config error messages.
pub const LOG_TARGET_CONFIG: &str = "alacritty_config_derive";
+/// Logging target for winit events.
+pub const LOG_TARGET_WINIT: &str = "alacritty_winit_event";
+
/// Name for the environment variable containing extra logging targets.
///
/// The targets are semicolon separated.
@@ -47,6 +50,7 @@ fn extra_log_targets() -> &'static [String] {
const ALLOWED_TARGETS: &[&str] = &[
LOG_TARGET_IPC_CONFIG,
LOG_TARGET_CONFIG,
+ LOG_TARGET_WINIT,
"alacritty_config_derive",
"alacritty_terminal",
"alacritty",