Example #1
0
 public static List <ILogger> GetCurrentLoggers(string containerName)
 {
     if (containerName == null)
     {
         throw new ArgumentNullException("containerName");
     }
     return(ContainerChooser.GetContainer(containerName).CurrentLoggers);
 }
Example #2
0
 public static ILogger GetLogger(string containerName, string name)
 {
     if (containerName == null)
     {
         throw new ArgumentNullException("containerAssembly");
     }
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     return(ContainerChooser.GetContainer(containerName).GetLogger(name));
 }