コード例 #1
0
ファイル: LogHelper.cs プロジェクト: chebalt/UrlRewrite
        private static IAppender CreateAppender()
        {
            var layout = new PatternLayout()
            {
                ConversionPattern = @"%4t %d{ABSOLUTE} %-5p %m%n"
            };

            var appender = new SitecoreLogFileAppender()
            {
                Name = "UrlRewriteAppender",
                AppendToFile = true,
                File = Configuration.LogFileName,
                Layout = layout
            };

            appender.ActivateOptions();

            return appender;
        }
コード例 #2
0
        private static IAppender CreateAppender()
        {
            var layout = new PatternLayout()
            {
                ConversionPattern = @"%4t %d{ABSOLUTE} %-5p %m%n"
            };

            var appender = new SitecoreLogFileAppender()
            {
                Name         = "UrlRewriteAppender",
                AppendToFile = true,
                File         = Configuration.LogFileName,
                Layout       = layout
            };

            appender.ActivateOptions();

            return(appender);
        }