@@ -48,7 +48,7 @@ public static async Task Main()
4848 {
4949 throw new Exception ( "Application instance certificate invalid!" ) ;
5050 }
51-
51+
5252 // create OPC UA cert validator
5353 app . ApplicationConfiguration . CertificateValidator = new CertificateValidator ( ) ;
5454 app . ApplicationConfiguration . CertificateValidator . CertificateValidation += new CertificateValidationEventHandler ( OPCUAServerCertificateValidationCallback ) ;
@@ -62,7 +62,7 @@ public static async Task Main()
6262
6363 // start the server.
6464 app . Start ( new UAServer ( ) ) . GetAwaiter ( ) . GetResult ( ) ;
65- Serilog . Log . Logger . Information ( "Server started." ) ;
65+ Log . Logger . Information ( "Server started." ) ;
6666
6767 MQTTClient methodHandlerMQTT = null ;
6868 KafkaClient methodHandlerKafka = null ;
@@ -78,7 +78,7 @@ public static async Task Main()
7878 methodHandlerMQTT . Connect ( ) ;
7979 }
8080
81- Serilog . Log . Logger . Information ( "UA Cloud Commander is running." ) ;
81+ Log . Logger . Information ( "UA Cloud Commander is running." ) ;
8282
8383 await Task . Delay ( Timeout . Infinite ) . ConfigureAwait ( false ) ;
8484 }
@@ -125,8 +125,8 @@ private static void InitLogging(string pathToLogFile)
125125 loggerConfiguration . WriteTo . Console ( ) ;
126126 loggerConfiguration . WriteTo . File ( Path . Combine ( pathToLogFile , "uacloudcommander.logfile.txt" ) , fileSizeLimitBytes : 1024 * 1024 , rollOnFileSizeLimit : true , retainedFileCountLimit : 10 ) ;
127127
128- Serilog . Log . Logger = loggerConfiguration . CreateLogger ( ) ;
129- Serilog . Log . Logger . Information ( $ "Log file is: { Path . Combine ( pathToLogFile , "uacloudcommander.logfile.txt" ) } ") ;
128+ Log . Logger = loggerConfiguration . CreateLogger ( ) ;
129+ Log . Logger . Information ( $ "Log file is: { Path . Combine ( pathToLogFile , "uacloudcommander.logfile.txt" ) } ") ;
130130 }
131131 }
132132}
0 commit comments