/// <summary> /// Get A logger if it exists /// </summary> /// <param name="containerName"></param> /// <param name="name"></param> /// <returns></returns> public static ILog Exists(string containerName, string name) { if (containerName == null) { throw new ArgumentNullException("containerName"); } if (name == null) { throw new ArgumentNullException("name"); } return(WrapLogger(LoggerDirector.Exists(containerName, name))); }
/// <summary> /// Create a logger container based on name an type. /// </summary> /// <param name="name"></param> /// <param name="type"></param> /// <returns></returns> public static ILoggerContainer CreateContainer(string name, Type type) { return(LoggerDirector.CreateContainer(name, type)); }
public static List <ILog> GetCurrentLoggers(string containerName) { return(WrapLoggers(LoggerDirector.GetCurrentLoggers(containerName))); }
/// <summary> /// Current loggers /// </summary> /// <param name="assembly"></param> /// <returns></returns> public static List <ILog> GetCurrentLoggers(Assembly assembly) { return(WrapLoggers(LoggerDirector.GetCurrentLoggers(assembly.GetName().Name))); }
/// <summary> /// Get logger from type. /// </summary> /// <param name="type"></param> /// <returns></returns> public static ILog GetLogger(Type type) { return(WrapLogger(LoggerDirector.GetLogger(Assembly.GetCallingAssembly(), type.FullName))); }
/// <summary> /// Get logger from name and type. /// </summary> /// <param name="name"></param> /// <param name="type"></param> /// <returns></returns> public static ILog GetLogger(string name, Type type) { return(WrapLogger(LoggerDirector.GetLogger(name, type.FullName))); }
/// <summary> /// Get logger from assembly and name. /// </summary> /// <param name="assembly"></param> /// <param name="name"></param> /// <returns></returns> public static ILog GetLogger(Assembly assembly, string name) { return(WrapLogger(LoggerDirector.GetLogger(assembly, name))); }