コード例 #1
0
 /// <summary>
 /// The main constructor that sets all needed properties...
 /// </summary>
 /// <param name="categoryName">The category name of the Logger.</param>
 /// <param name="filePath">The file path name where the logger is located.</param>
 /// <param name="configuration">The <seealso cref="FileLoggerConfiguration"/>. </param>
 public FileLogger(string categoryName, string filePath, FileLoggerConfiguration configuration)
 {
     mCategoryName            = categoryName;
     mFilePath                = Path.GetFullPath(filePath);
     mDirectory               = Path.GetDirectoryName(filePath);
     mFileLoggerConfiguration = configuration;
 }
コード例 #2
0
 /// <summary>
 /// The basic <seealso cref="FileLoggerProvider"/> constructor that only sets the file path name and the <seealso cref="FileLoggerConfiguration"/>.
 /// </summary>
 /// <param name="path">The file path name.</param>
 /// <param name="configuration">The configuration for <seealso cref="FileLogger"/>.</param>
 public FileLoggerProvider(string path, FileLoggerConfiguration configuration)
 {
     mConfiguration = configuration;
     mFilePath      = path;
 }