コード例 #1
0
 /// <summary>
 /// Get a new logger.
 /// </summary>
 /// <param name="name">New logger's name.</param>
 /// <param name="basicConfig">New logger's config.</param>
 /// <returns>Return a new logger with the name that is specified.</returns>
 public static Logging GetLogger(string name, LogBasicConfig basicConfig)
 => new Logging(name, basicConfig);
コード例 #2
0
 /// <summary>
 /// Set the logger's config.
 /// </summary>
 /// <param name="basicConfig">Logger's config</param>
 public void BasicConfig(LogBasicConfig basicConfig)
 {
     _level    = basicConfig.Level;
     _filename = basicConfig.FileName;
     _format   = basicConfig.Format;
 }
コード例 #3
0
 private Logging(string name, LogBasicConfig basicConfig)
 {
     _name = name;
     BasicConfig(basicConfig);
 }