Exemplo n.º 1
0
Arquivo: Debug.cs Projeto: 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;
        }
Exemplo n.º 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;
        }