示例#1
0
文件: Debug.cs 项目: 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;
        }
示例#2
0
文件: Debug.cs 项目: xiaotie/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;
        }