/// <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);
/// <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; }
private Logging(string name, LogBasicConfig basicConfig) { _name = name; BasicConfig(basicConfig); }