Beispiel #1
0
Datei: Debug.cs Projekt: GMZ/mdcm
        public static void InitializeIsolatedStorageDebugLogger()
        {
            LoggingConfiguration config = new LoggingConfiguration();

            using (IsolatedStorageTarget target = new IsolatedStorageTarget { Layout = "${date} ${level:uppercase=true} >>> ${message}" })
            {
                config.AddTarget("IsolatedStorage", target);
                config.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, target));
            }

            LogManager.Configuration = config;
        }
Beispiel #2
0
        public static void InitializeIsolatedStorageDebugLogger()
        {
            LoggingConfiguration config = new LoggingConfiguration();

            using (IsolatedStorageTarget target = new IsolatedStorageTarget {
                Layout = "${date} ${level:uppercase=true} >>> ${message}"
            })
            {
                config.AddTarget("IsolatedStorage", target);
                config.LoggingRules.Add(new LoggingRule("*", LogLevel.Debug, target));
            }

            LogManager.Configuration = config;
        }