Example #1
0
File: Debug.cs Project: 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;
        }
Example #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;
        }