コード例 #1
0
 /// <summary>
 /// Returns all the currently defined loggers in the specified domain.
 /// </summary>
 /// <param name="domain">the domain to lookup in</param>
 /// <remarks>
 /// The root logger is <b>not</b> included in the returned array.
 /// </remarks>
 /// <returns>All the defined loggers</returns>
 public static IProgramLog[] GetCurrentLoggers(string domain)
 {
     return(ProgramLogManager.WrapLoggers(LoggerManager.GetCurrentLoggers(domain)));
 }
コード例 #2
0
 /// <summary>
 /// Returns all the currently defined loggers in the specified assembly's domain.
 /// </summary>
 /// <param name="assembly">the assembly to use to lookup the domain</param>
 /// <remarks>
 /// The root logger is <b>not</b> included in the returned array.
 /// </remarks>
 /// <returns>All the defined loggers</returns>
 public static IProgramLog[] GetCurrentLoggers(Assembly assembly)
 {
     return(ProgramLogManager.WrapLoggers(LoggerManager.GetCurrentLoggers(assembly)));
 }