File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed
ServiceControl.Monitoring Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 77using ServiceControl . Configuration ;
88using ServiceControl . Infrastructure ;
99
10+ var loggingSettings = new LoggingSettings ( Settings . SettingsRootNamespace ) ;
11+ LoggingConfigurator . ConfigureLogging ( loggingSettings ) ;
1012var logger = LoggerUtil . CreateStaticLogger ( typeof ( Program ) ) ;
13+
1114try
1215{
1316 AppDomain . CurrentDomain . UnhandledException += ( s , e ) => logger . LogError ( e . ExceptionObject as Exception , "Unhandled exception was caught." ) ;
3033 return 0 ;
3134 }
3235
33- var loggingSettings = new LoggingSettings ( Settings . SettingsRootNamespace ) ;
34- LoggingConfigurator . ConfigureLogging ( loggingSettings ) ;
35-
3636 var settings = new Settings ( loggingSettings : loggingSettings ) ;
3737
3838 await new CommandRunner ( arguments . Command ) . Execute ( arguments , settings ) ;
Original file line number Diff line number Diff line change 55using ServiceControl . Infrastructure ;
66using ServiceControl . Monitoring ;
77
8+ var loggingSettings = new LoggingSettings ( Settings . SettingsRootNamespace ) ;
9+ LoggingConfigurator . ConfigureLogging ( loggingSettings ) ;
810var logger = LoggerUtil . CreateStaticLogger < Program > ( ) ;
911
1012try
2325
2426 var arguments = new HostArguments ( args ) ;
2527
26- var loggingSettings = new LoggingSettings ( Settings . SettingsRootNamespace ) ;
27- LoggingConfigurator . ConfigureLogging ( loggingSettings ) ;
28-
2928 var settings = new Settings ( loggingSettings : loggingSettings ) ;
3029
3130 await new CommandRunner ( arguments . Command ) . Execute ( arguments , settings ) ;
Original file line number Diff line number Diff line change 77using ServiceControl . Hosting . Commands ;
88using ServiceControl . Infrastructure ;
99
10+ var loggingSettings = new LoggingSettings ( Settings . SettingsRootNamespace ) ;
11+ LoggingConfigurator . ConfigureLogging ( loggingSettings ) ;
1012var logger = LoggerUtil . CreateStaticLogger ( typeof ( Program ) ) ;
1113
1214try
3133 return 0 ;
3234 }
3335
34- var loggingSettings = new LoggingSettings ( Settings . SettingsRootNamespace ) ;
35- LoggingConfigurator . ConfigureLogging ( loggingSettings ) ;
36-
3736 var settings = new Settings ( loggingSettings : loggingSettings ) ;
3837
3938 await new CommandRunner ( arguments . Command ) . Execute ( arguments , settings ) ;
You can’t perform that action at this time.
0 commit comments