Exemplo n.º 1
0
        public static IKarmaLogger Create(ILogger logger = null, IMessageLogger messageLogger = null)
        {
            var karmaLogger = new KarmaLogger();

            karmaLogger.AddLogger(logger);
            karmaLogger.AddLogger(messageLogger);
            return(karmaLogger);
        }
Exemplo n.º 2
0
 public static IKarmaLogger Create(ILogger logger = null, IMessageLogger messageLogger = null)
 {
     var karmaLogger = new KarmaLogger();
     karmaLogger.AddLogger(logger);
     karmaLogger.AddLogger(messageLogger);
     if (Globals.LogToFile)
     {
         karmaLogger.AddLogger(Globals.LogFilename);
     }
     return karmaLogger;
 }