Beispiel #1
0
 /// <summary>
 /// Finds or creates a logger named after the existing logger with the appended name added.
 /// </summary>
 public static Logger GetSubLogger(this Logger logger, string appendedName, string seperator = ".")
 {
     return(logger.GetLogger(logger.Name + seperator + appendedName));
 }
Beispiel #2
0
 /// <summary>
 /// Finds or creates a logger named after the existing logger with the appended name added.
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="loggerName"></param>
 /// <returns></returns>
 public static Logger GetSubLogger(this Logger logger, string appendedName)
 {
     return(logger.GetLogger(logger.Name + appendedName));
 }