public static NamedLogger GetLogger(string name, Encoding encoding = null) { NamedLogger logger; lock ( _loggerList ) { if (!_loggerList.TryGetValue(name, out logger)) { logger = new NamedLogger(name, encoding); _loggerList.Add(name, logger); } } return(logger); }
public static void CloseLogger(NamedLogger logger) { CloseLogger(logger.Name); }