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.
This commit is contained in:
Namhyeon Go 2026-01-26 14:54:37 +09:00
parent 96986d1417
commit 5d8684144b

View File

@ -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