Esempio n. 1
0
        public static void ApplyDefaultsForWindowedApplication()
        {
            TeeLogger root = new TeeLogger();

            Logger = root;
            root.Loggers.AddRange
            (
                new IAmLogger[]
            {
                new TraceLogger()
            }
            );
        }
Esempio n. 2
0
        /// <summary>
        /// Apply defaults for console application.
        /// </summary>
        public static void ApplyDefaultsForWindowedApplication()
        {
#if CLASSIC || DESKTOP
            TeeLogger root = new TeeLogger();
            Logger = root;
            root.Loggers.AddRange
            (
                new IAmLogger[]
            {
                new TraceLogger()
            }
            );
#endif
        }
Esempio n. 3
0
        /// <summary>
        /// Apply defaults for console application.
        /// </summary>
        public static void ApplyDefaultsForConsoleApplication()
        {
#if CLASSIC || DESKTOP || NETCORE
            TeeLogger root = new TeeLogger();
            Logger = root;
            root.Loggers.AddRange
            (
                new IAmLogger[]
            {
                new ConsoleLogger(),
                new TraceLogger()
            }
            );
#endif
        }