mirror of
https://github.com/gnh1201/welsonjs.git
synced 2026-04-18 18:18:42 +00:00
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:
parent
96986d1417
commit
5d8684144b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user