예제 #1
0
        public static void Setup()
        {
            if (logger != null)
            {
                logger.Dispose();
            }

            List <ILogDestination> destination = new List <ILogDestination>();
            LogLevel minimalFileLevel          = TraceLogging ? LogLevel.Trace : LogLevel.Debug;

            destination.Add(new FileDestination(minimalFileLevel, Path.Combine(Installation.GetLogDirectory(), Filename)));
            if (ConsoleLogging)
            {
                destination.Add(new ConsoleDestination(LogLevel.Trace));
            }
            logger = new Logger(destination.ToArray());
        }