From 5d8684144bd606efcece4d1d24a2a3bec4f22692 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 26 Jan 2026 14:54:37 +0900 Subject: [PATCH] Use environment-specific logging in Program.cs Added conditional compilation to initialize the logger with 'dev' in DEBUG builds and 'prod' otherwise. This ensures appropriate logging configuration based on the build environment. --- WelsonJS.Augmented/WelsonJS.Launcher/Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WelsonJS.Augmented/WelsonJS.Launcher/Program.cs b/WelsonJS.Augmented/WelsonJS.Launcher/Program.cs index 3bf33ac..d4f8c57 100644 --- a/WelsonJS.Augmented/WelsonJS.Launcher/Program.cs +++ b/WelsonJS.Augmented/WelsonJS.Launcher/Program.cs @@ -31,7 +31,11 @@ namespace WelsonJS.Launcher _dateTimeFormat = GetAppConfig("DateTimeFormat"); // set up logger +#if DEBUG LoggingBootstrap.Init("dev"); +#else + LoggingBootstrap.Init("prod"); +#endif _logger = LogManager.GetLogger(typeof(Program)); // load external assemblies