Beispiel #1
0
 /// <summary>
 /// Initializes the logger.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 private void InitializeLogger(LogConfiguration configuration)
 {
     logger = new LoggerConfiguration().WriteTo.File(configuration.FileLocation).CreateLogger();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Logger"/> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 public Logger(LogConfiguration configuration)
 {
     InitializeLogger(configuration);
 }