You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by dp...@apache.org on 2017/07/27 23:02:19 UTC
[38/50] [abbrv] logging-log4net git commit: Refactor: removed all
trailing whitespaces from all *.cs files
Refactor: removed all trailing whitespaces from all *.cs files
Project: http://git-wip-us.apache.org/repos/asf/logging-log4net/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4net/commit/8a5b4204
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4net/tree/8a5b4204
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4net/diff/8a5b4204
Branch: refs/heads/feature/RollingFileAppender-NG
Commit: 8a5b4204bf4c053316c88a265a9afee04a250e36
Parents: aefe91a
Author: Dominik Psenner <dp...@apache.org>
Authored: Thu Jul 27 18:45:54 2017 +0200
Committer: Dominik Psenner <dp...@apache.org>
Committed: Thu Jul 27 18:45:54 2017 +0200
----------------------------------------------------------------------
.../NotLogging/cs/src/AssemblyInfo.cs | 22 +--
.../Performance/NotLogging/cs/src/NotLogging.cs | 178 +++++++++----------
.../SharedModule/cs/src/AssemblyInfo.cs | 22 +--
.../1.0/Repository/SharedModule/cs/src/Math.cs | 6 +-
.../Repository/SimpleApp/cs/src/AssemblyInfo.cs | 22 +--
.../Repository/SimpleApp/cs/src/EntryPoint.cs | 10 +-
.../SimpleModule/cs/src/AssemblyInfo.cs | 22 +--
.../1.0/Repository/SimpleModule/cs/src/Math.cs | 8 +-
.../Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs | 22 +--
.../ConsoleApp/cs/src/LoggingExample.cs | 8 +-
.../cs/src/Appender/AsyncAppender.cs | 26 +--
.../cs/src/Appender/FastDbAppender.cs | 18 +-
.../cs/src/Appender/FireEventAppender.cs | 12 +-
.../cs/src/Appender/MessageBoxAppender.cs | 10 +-
.../Appender/MessageObjectExpanderAppender.cs | 6 +-
.../cs/src/Appender/MsmqAppender.cs | 8 +-
.../cs/src/Appender/PatternFileAppender.cs | 14 +-
.../src/Appender/PatternLayoutAdoNetAppender.cs | 8 +-
.../PatternLayoutAdoNetAppenderParameter.cs | 6 +-
.../cs/src/Appender/SimpleSmtpAppender.cs | 28 +--
.../SampleAppendersApp/cs/src/AssemblyInfo.cs | 22 +--
.../SampleAppendersApp/cs/src/LoggingExample.cs | 6 +-
.../WmiAppender/cs/src/AssemblyInfo.cs | 22 +--
.../WmiAppender/cs/src/IWmiBoundEvent.cs | 6 +-
.../Appenders/WmiAppender/cs/src/WmiAppender.cs | 30 ++--
.../WmiAppender/cs/src/WmiInstaller.cs | 6 +-
.../Appenders/WmiAppender/cs/src/WmiLayout.cs | 12 +-
.../WmiAppender/cs/src/WmiLoggingEvent.cs | 6 +-
.../EventIDLogApp/cs/src/AssemblyInfo.cs | 22 +--
.../EventIDLogApp/cs/src/EventIDLogApp.cs | 6 +-
.../TraceLogApp/cs/src/AssemblyInfo.cs | 22 +--
.../TraceLogApp/cs/src/TraceLogApp.cs | 6 +-
.../SampleLayoutsApp/cs/src/AssemblyInfo.cs | 22 +--
.../cs/src/Layout/ForwardingLayout.cs | 34 ++--
.../cs/src/Layout/LevelConversionPattern.cs | 6 +-
.../cs/src/Layout/LevelPatternLayout.cs | 6 +-
.../cs/src/Layout/LineWrappingLayout.cs | 6 +-
.../SampleLayoutsApp/cs/src/LoggingExample.cs | 6 +-
.../NotLogging/cs/src/AssemblyInfo.cs | 22 +--
.../Performance/NotLogging/cs/src/NotLogging.cs | 178 +++++++++----------
.../RemotingClient/cs/src/AssemblyInfo.cs | 22 +--
.../RemotingClient/cs/src/RemotingClient.cs | 6 +-
.../RemotingServer/cs/src/AssemblyInfo.cs | 22 +--
.../RemotingServer/cs/src/RemotingServer.cs | 6 +-
.../SharedModule/cs/src/AssemblyInfo.cs | 22 +--
.../2.0/Repository/SharedModule/cs/src/Math.cs | 6 +-
.../Repository/SimpleApp/cs/src/AssemblyInfo.cs | 22 +--
.../Repository/SimpleApp/cs/src/EntryPoint.cs | 10 +-
.../SimpleModule/cs/src/AssemblyInfo.cs | 22 +--
.../2.0/Repository/SimpleModule/cs/src/Math.cs | 8 +-
.../Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs | 22 +--
.../ConsoleApp/cs/src/LoggingExample.cs | 8 +-
.../2.0/Tutorials/WebApp/cs/src/AssemblyInfo.cs | 22 +--
.../WebApp/cs/src/AssemblyVersionInfo.cs | 10 +-
.../2.0/Tutorials/WebApp/cs/src/Global.asax.cs | 14 +-
.../Tutorials/WebApp/cs/src/WebForm1.aspx.cs | 16 +-
.../Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs | 22 +--
.../Tutorials/ConsoleApp/cs/src/EntryPoint.cs | 12 +-
.../ConsoleApp/cs/src/LoggingExample.cs | 10 +-
.../SharedModule/cs/src/AssemblyInfo.cs | 22 +--
.../1.0/Repository/SharedModule/cs/src/Math.cs | 6 +-
.../Repository/SimpleApp/cs/src/AssemblyInfo.cs | 22 +--
.../Repository/SimpleApp/cs/src/EntryPoint.cs | 10 +-
.../SimpleModule/cs/src/AssemblyInfo.cs | 22 +--
.../1.0/Repository/SimpleModule/cs/src/Math.cs | 8 +-
.../log4net.Ext.EventID/cs/src/AssemblyInfo.cs | 22 +--
.../cs/src/EventIDLogImpl.cs | 6 +-
.../cs/src/EventIDLogManager.cs | 32 ++--
.../log4net.Ext.EventID/cs/src/IEventIDLog.cs | 6 +-
.../cs/src/AssemblyInfo.cs | 22 +--
.../cs/src/MarshalByRefLogImpl.cs | 84 ++++-----
.../cs/src/MarshalByRefLogManager.cs | 32 ++--
.../log4net.Ext.Trace/cs/src/AssemblyInfo.cs | 22 +--
.../1.0/log4net.Ext.Trace/cs/src/ITraceLog.cs | 8 +-
.../log4net.Ext.Trace/cs/src/TraceLogImpl.cs | 10 +-
.../log4net.Ext.Trace/cs/src/TraceLogManager.cs | 32 ++--
.../log4net.tests/ApplicationException.cs | 6 +-
.../log4net.tests/CompatibilityExtensions.cs | 6 +-
.../log4net.tests/ExpectedExceptionAttribute.cs | 6 +-
netstandard/log4net/CompatibilityExtensions.cs | 6 +-
src/Appender/AdoNetAppender.cs | 70 ++++----
src/Appender/AnsiColorTerminalAppender.cs | 56 +++---
src/Appender/AppenderCollection.cs | 86 ++++-----
src/Appender/AppenderSkeleton.cs | 144 +++++++--------
src/Appender/AspNetTraceAppender.cs | 38 ++--
src/Appender/BufferingAppenderSkeleton.cs | 112 ++++++------
src/Appender/BufferingForwardingAppender.cs | 38 ++--
src/Appender/ColoredConsoleAppender.cs | 84 ++++-----
src/Appender/ConsoleAppender.cs | 36 ++--
src/Appender/DebugAppender.cs | 36 ++--
src/Appender/EventLogAppender.cs | 70 ++++----
src/Appender/FileAppender.cs | 74 ++++----
src/Appender/ForwardingAppender.cs | 46 ++---
src/Appender/IAppender.cs | 8 +-
src/Appender/IBulkAppender.cs | 6 +-
src/Appender/IFlushable.cs | 6 +-
src/Appender/LocalSyslogAppender.cs | 66 +++----
src/Appender/ManagedColoredConsoleAppender.cs | 38 ++--
src/Appender/MemoryAppender.cs | 26 +--
src/Appender/NetSendAppender.cs | 78 ++++----
src/Appender/OutputDebugStringAppender.cs | 12 +-
src/Appender/RemoteSyslogAppender.cs | 20 +--
src/Appender/RemotingAppender.cs | 44 ++---
src/Appender/SmtpAppender.cs | 70 ++++----
src/Appender/SmtpPickupDirAppender.cs | 46 ++---
src/Appender/TelnetAppender.cs | 70 ++++----
src/Appender/TextWriterAppender.cs | 114 ++++++------
src/Appender/TraceAppender.cs | 40 ++---
src/Appender/UdpAppender.cs | 170 +++++++++---------
src/AssemblyInfo.cs | 24 +--
src/AssemblyVersionInfo.cs | 10 +-
src/Config/AliasDomainAttribute.cs | 8 +-
src/Config/AliasRepositoryAttribute.cs | 12 +-
src/Config/BasicConfigurator.cs | 16 +-
src/Config/ConfiguratorAttribute.cs | 8 +-
src/Config/DOMConfigurator.cs | 44 ++---
src/Config/DOMConfiguratorAttribute.cs | 6 +-
src/Config/DomainAttribute.cs | 10 +-
.../Log4NetConfigurationSectionHandler.cs | 6 +-
src/Config/PluginAttribute.cs | 12 +-
src/Config/RepositoryAttribute.cs | 20 +--
src/Config/SecurityContextProviderAttribute.cs | 6 +-
src/Config/XmlConfigurator.cs | 94 +++++-----
src/Config/XmlConfiguratorAttribute.cs | 26 +--
src/Core/CompactRepositorySelector.cs | 26 +--
src/Core/DefaultRepositorySelector.cs | 78 ++++----
src/Core/ErrorCode.cs | 6 +-
src/Core/ExceptionEvaluator.cs | 12 +-
src/Core/IAppenderAttachable.cs | 10 +-
src/Core/IErrorHandler.cs | 12 +-
src/Core/IFixingRequired.cs | 12 +-
src/Core/ILogger.cs | 14 +-
src/Core/ILoggerWrapper.cs | 8 +-
src/Core/IOptionHandler.cs | 10 +-
src/Core/IRepositorySelector.cs | 16 +-
src/Core/ITriggeringEventEvaluator.cs | 6 +-
src/Core/Level.cs | 82 ++++-----
src/Core/LevelCollection.cs | 88 ++++-----
src/Core/LevelEvaluator.cs | 14 +-
src/Core/LevelMap.cs | 10 +-
src/Core/LocationInfo.cs | 42 ++---
src/Core/LogException.cs | 18 +-
src/Core/LogImpl.cs | 158 ++++++++--------
src/Core/LoggerManager.cs | 56 +++---
src/Core/LoggerWrapperImpl.cs | 14 +-
src/Core/LoggingEvent.cs | 144 +++++++--------
src/Core/MethodItem.cs | 14 +-
src/Core/SecurityContext.cs | 8 +-
src/Core/SecurityContextProvider.cs | 8 +-
src/Core/StackFrameItem.cs | 16 +-
src/Core/TimeEvaluator.cs | 20 +--
src/Core/WrapperMap.cs | 18 +-
src/DateFormatter/AbsoluteTimeDateFormatter.cs | 20 +--
src/DateFormatter/DateTimeDateFormatter.cs | 16 +-
src/DateFormatter/IDateFormatter.cs | 6 +-
src/DateFormatter/Iso8601DateFormatter.cs | 8 +-
src/DateFormatter/SimpleDateFormatter.cs | 8 +-
src/Filter/DenyAllFilter.cs | 10 +-
src/Filter/FilterDecision.cs | 14 +-
src/Filter/FilterSkeleton.cs | 28 +--
src/Filter/IFilter.cs | 16 +-
src/Filter/LevelMatchFilter.cs | 20 +--
src/Filter/LevelRangeFilter.cs | 30 ++--
src/Filter/LoggerMatchFilter.cs | 32 ++--
src/Filter/MdcFilter.cs | 6 +-
src/Filter/NdcFilter.cs | 8 +-
src/Filter/PropertyFilter.cs | 30 ++--
src/Filter/StringMatchFilter.cs | 34 ++--
src/GlobalContext.cs | 14 +-
src/ILog.cs | 126 ++++++-------
src/Layout/DynamicPatternLayout.cs | 8 +-
src/Layout/ExceptionLayout.cs | 12 +-
src/Layout/ILayout.cs | 8 +-
src/Layout/IRawLayout.cs | 6 +-
src/Layout/Layout2RawLayoutAdapter.cs | 8 +-
src/Layout/LayoutSkeleton.cs | 18 +-
src/Layout/Pattern/AppDomainPatternConverter.cs | 8 +-
.../Pattern/AspNetCachePatternConverter.cs | 6 +-
.../Pattern/AspNetContextPatternConverter.cs | 6 +-
src/Layout/Pattern/AspNetPatternConverter.cs | 8 +-
.../Pattern/AspNetRequestPatternConverter.cs | 6 +-
.../Pattern/AspNetSessionPatternConverter.cs | 6 +-
src/Layout/Pattern/DatePatternConverter.cs | 40 ++---
src/Layout/Pattern/ExceptionPatternConverter.cs | 16 +-
.../Pattern/FileLocationPatternConverter.cs | 8 +-
.../Pattern/FullLocationPatternConverter.cs | 8 +-
src/Layout/Pattern/IdentityPatternConverter.cs | 10 +-
src/Layout/Pattern/LevelPatternConverter.cs | 8 +-
.../Pattern/LineLocationPatternConverter.cs | 8 +-
src/Layout/Pattern/LoggerPatternConverter.cs | 10 +-
src/Layout/Pattern/MessagePatternConverter.cs | 8 +-
.../Pattern/MethodLocationPatternConverter.cs | 8 +-
src/Layout/Pattern/NamedPatternConverter.cs | 28 +--
src/Layout/Pattern/NdcPatternConverter.cs | 8 +-
src/Layout/Pattern/PatternLayoutConverter.cs | 16 +-
src/Layout/Pattern/PropertyPatternConverter.cs | 8 +-
.../Pattern/RelativeTimePatternConverter.cs | 8 +-
.../Pattern/StackTracePatternConverter.cs | 28 +--
src/Layout/Pattern/ThreadPatternConverter.cs | 8 +-
src/Layout/Pattern/TypeNamePatternConverter.cs | 14 +-
src/Layout/Pattern/UserNamePatternConverter.cs | 8 +-
src/Layout/Pattern/UtcDatePatternConverter.cs | 14 +-
src/Layout/PatternLayout.cs | 150 ++++++++--------
src/Layout/RawLayoutConverter.cs | 14 +-
src/Layout/RawPropertyLayout.cs | 8 +-
src/Layout/RawTimeStampLayout.cs | 8 +-
src/Layout/RawUtcTimeStampLayout.cs | 8 +-
src/Layout/SimpleLayout.cs | 18 +-
src/Layout/XmlLayout.cs | 38 ++--
src/Layout/XmlLayoutBase.cs | 50 +++---
src/Layout/XmlLayoutSchemaLog4j.cs | 34 ++--
src/Log4netAssemblyInfo.cs | 6 +-
src/LogManager.cs | 66 +++----
src/LogicalThreadContext.cs | 22 +--
src/MDC.cs | 10 +-
src/NDC.cs | 40 ++---
src/ObjectRenderer/DefaultRenderer.cs | 30 ++--
src/ObjectRenderer/IObjectRenderer.cs | 8 +-
src/ObjectRenderer/RendererMap.cs | 42 ++---
src/Plugin/IPlugin.cs | 8 +-
src/Plugin/IPluginFactory.cs | 6 +-
src/Plugin/PluginCollection.cs | 88 ++++-----
src/Plugin/PluginMap.cs | 14 +-
src/Plugin/PluginSkeleton.cs | 18 +-
src/Plugin/RemoteLoggingServerPlugin.cs | 22 +--
src/Repository/ConfigurationChangedEventArgs.cs | 6 +-
.../Hierarchy/DefaultLoggerFactory.cs | 14 +-
src/Repository/Hierarchy/Hierarchy.cs | 130 +++++++-------
src/Repository/Hierarchy/ILoggerFactory.cs | 10 +-
src/Repository/Hierarchy/Logger.cs | 92 +++++-----
src/Repository/Hierarchy/LoggerKey.cs | 28 +--
src/Repository/Hierarchy/ProvisionNode.cs | 12 +-
src/Repository/Hierarchy/RootLogger.cs | 20 +--
.../Hierarchy/XmlHierarchyConfigurator.cs | 152 ++++++++--------
src/Repository/IBasicRepositoryConfigurator.cs | 6 +-
src/Repository/ILoggerRepository.cs | 14 +-
src/Repository/IXmlRepositoryConfigurator.cs | 6 +-
src/Repository/LoggerRepositorySkeleton.cs | 48 ++---
src/ThreadContext.cs | 18 +-
src/Util/AppenderAttachedImpl.cs | 48 ++---
src/Util/CompositeProperties.cs | 8 +-
src/Util/ContextPropertiesBase.cs | 6 +-
src/Util/ConverterInfo.cs | 6 +-
src/Util/CountingQuietTextWriter.cs | 50 +++---
src/Util/CyclicBuffer.cs | 76 ++++----
src/Util/EmptyCollection.cs | 24 +--
src/Util/EmptyDictionary.cs | 32 ++--
src/Util/FormattingInfo.cs | 12 +-
src/Util/GlobalContextProperties.cs | 14 +-
src/Util/ILogExtensions.cs | 150 ++++++++--------
src/Util/LevelMapping.cs | 14 +-
src/Util/LevelMappingEntry.cs | 14 +-
src/Util/LogLog.cs | 110 ++++++------
src/Util/LogicalThreadContextProperties.cs | 26 +--
src/Util/LogicalThreadContextStack.cs | 12 +-
src/Util/LogicalThreadContextStacks.cs | 6 +-
src/Util/NativeError.cs | 80 ++++-----
src/Util/NullDictionaryEnumerator.cs | 42 ++---
src/Util/NullEnumerator.cs | 24 +--
src/Util/NullSecurityContext.cs | 6 +-
src/Util/OnlyOnceErrorHandler.cs | 20 +--
src/Util/OptionConverter.cs | 152 ++++++++--------
src/Util/PatternConverter.cs | 40 ++---
src/Util/PatternParser.cs | 26 +--
src/Util/PatternString.cs | 82 ++++-----
.../AppDomainPatternConverter.cs | 10 +-
.../AppSettingPatternConverter.cs | 6 +-
.../DatePatternConverter.cs | 44 ++---
.../EnvironmentFolderPathPatternConverter.cs | 12 +-
.../EnvironmentPatternConverter.cs | 22 +--
.../IdentityPatternConverter.cs | 14 +-
.../LiteralPatternConverter.cs | 18 +-
.../NewLinePatternConverter.cs | 12 +-
.../ProcessIdPatternConverter.cs | 12 +-
.../PropertyPatternConverter.cs | 12 +-
.../RandomStringPatternConverter.cs | 20 +--
.../UserNamePatternConverter.cs | 12 +-
.../UtcDatePatternConverter.cs | 12 +-
src/Util/PropertiesDictionary.cs | 10 +-
src/Util/ProtectCloseTextWriter.cs | 8 +-
src/Util/QuietTextWriter.cs | 38 ++--
src/Util/ReadOnlyPropertiesDictionary.cs | 12 +-
src/Util/ReaderWriterLock.cs | 32 ++--
src/Util/ReusableStringWriter.cs | 14 +-
src/Util/SystemInfo.cs | 98 +++++-----
src/Util/SystemStringFormat.cs | 10 +-
src/Util/TextWriterAdapter.cs | 32 ++--
src/Util/ThreadContextProperties.cs | 8 +-
src/Util/ThreadContextStack.cs | 36 ++--
src/Util/ThreadContextStacks.cs | 8 +-
src/Util/Transform.cs | 16 +-
src/Util/TypeConverters/BooleanConverter.cs | 6 +-
.../ConversionNotSupportedException.cs | 18 +-
src/Util/TypeConverters/ConverterRegistry.cs | 26 +--
src/Util/TypeConverters/EncodingConverter.cs | 16 +-
src/Util/TypeConverters/IConvertFrom.cs | 6 +-
src/Util/TypeConverters/IConvertTo.cs | 6 +-
src/Util/TypeConverters/IPAddressConverter.cs | 24 +--
.../TypeConverters/PatternLayoutConverter.cs | 10 +-
.../TypeConverters/PatternStringConverter.cs | 14 +-
src/Util/TypeConverters/TypeConverter.cs | 12 +-
.../TypeConverters/TypeConverterAttribute.cs | 16 +-
src/Util/WindowsSecurityContext.cs | 24 +--
tests/src/Appender/AdoNet/Log4NetConnection.cs | 2 +-
tests/src/Appender/AdoNetAppenderTest.cs | 16 +-
tests/src/Appender/AppenderCollectionTest.cs | 6 +-
tests/src/Appender/BufferingAppenderTest.cs | 6 +-
tests/src/Appender/CountingAppender.cs | 6 +-
tests/src/Appender/DebugAppenderTest.cs | 4 +-
tests/src/Appender/EventLogAppenderTest.cs | 6 +-
tests/src/Appender/RemotingAppenderTest.cs | 10 +-
tests/src/Appender/SmtpPickupDirAppenderTest.cs | 6 +-
tests/src/Appender/StringAppender.cs | 6 +-
tests/src/AssemblyInfo.cs | 8 +-
tests/src/Context/LogicalThreadContextTest.cs | 6 +-
tests/src/Context/ThreadContextTest.cs | 6 +-
tests/src/Core/FixingTest.cs | 6 +-
tests/src/Core/ShutdownTest.cs | 6 +-
tests/src/Core/StringFormatTest.cs | 6 +-
.../AbsoluteTimeDateFormatterTest.cs | 8 +-
tests/src/Filter/FilterTest.cs | 4 +-
tests/src/Hierarchy/Hierarchy.cs | 2 +-
tests/src/Hierarchy/Logger.cs | 6 +-
.../Hierarchy/XmlHierarchyConfiguratorTest.cs | 6 +-
tests/src/Layout/DynamicPatternLayoutTest.cs | 6 +-
tests/src/Layout/PatternLayoutTest.cs | 6 +-
tests/src/Layout/XmlLayoutTest.cs | 8 +-
.../LoggerRepository/ConfigurationMessages.cs | 2 +-
tests/src/Util/CyclicBufferTest.cs | 6 +-
tests/src/Util/PatternConverterTest.cs | 16 +-
tests/src/Util/PatternStringTest.cs | 2 +-
tests/src/Util/PropertiesDictionaryTest.cs | 6 +-
.../Util/RandomStringPatternConverterTest.cs | 6 +-
tests/src/Util/SystemInfoTest.cs | 6 +-
tests/src/Util/TransformTest.cs | 8 +-
tests/src/Utils.cs | 6 +-
336 files changed, 4275 insertions(+), 4275 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Performance/NotLogging/cs/src/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Performance/NotLogging/cs/src/AssemblyInfo.cs b/examples/mono/1.0/Performance/NotLogging/cs/src/AssemblyInfo.cs
index b278ed8..872c53f 100644
--- a/examples/mono/1.0/Performance/NotLogging/cs/src/AssemblyInfo.cs
+++ b/examples/mono/1.0/Performance/NotLogging/cs/src/AssemblyInfo.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -21,7 +21,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
//
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
@@ -29,29 +29,29 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyDescription("log4net performance test - NotLogging")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("log4net - NotLogging")]
-[assembly: AssemblyCulture("")]
+[assembly: AssemblyCulture("")]
//
-// In order to sign your assembly you must specify a key to use. Refer to the
+// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
-// Use the attributes below to control which key is used for signing.
+// Use the attributes below to control which key is used for signing.
//
-// Notes:
+// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
+// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
+// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Performance/NotLogging/cs/src/NotLogging.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Performance/NotLogging/cs/src/NotLogging.cs b/examples/mono/1.0/Performance/NotLogging/cs/src/NotLogging.cs
index 0501ef9..1b6ff70 100644
--- a/examples/mono/1.0/Performance/NotLogging/cs/src/NotLogging.cs
+++ b/examples/mono/1.0/Performance/NotLogging/cs/src/NotLogging.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -17,7 +17,7 @@
//
#endregion
-namespace NotLogging
+namespace NotLogging
{
using System;
using System.Collections;
@@ -28,7 +28,7 @@ namespace NotLogging
using log4net.Repository;
using log4net.Repository.Hierarchy;
- public class NotLogging
+ public class NotLogging
{
#region Init Code
@@ -44,9 +44,9 @@ namespace NotLogging
static readonly ILog[] LOG_ARRAY = new ILog[] {
- SHORT_LOG,
- MEDIUM_LOG,
- LONG_LOG,
+ SHORT_LOG,
+ MEDIUM_LOG,
+ LONG_LOG,
INEXISTENT_SHORT_LOG,
INEXISTENT_MEDIUM_LOG,
INEXISTENT_LONG_LOG};
@@ -63,13 +63,13 @@ namespace NotLogging
new ComplexMessage_MemberGuard_Bare(),
new ComplexMessage_LocalGuard_Bare()};
- private static void Usage()
+ private static void Usage()
{
System.Console.WriteLine(
- "Usage: NotLogging <true|false> <runLength>" + Environment.NewLine +
- "\t true indicates shipped code" + Environment.NewLine +
- "\t false indicates code in development" + Environment.NewLine +
- "\t runLength is an int representing the run length of loops" + Environment.NewLine +
+ "Usage: NotLogging <true|false> <runLength>" + Environment.NewLine
+ "\t true indicates shipped code" + Environment.NewLine
+ "\t false indicates code in development" + Environment.NewLine
+ "\t runLength is an int representing the run length of loops" + Environment.NewLine
"\t We suggest that runLength be at least 1000000 (1 million).");
Environment.Exit(1);
}
@@ -79,32 +79,32 @@ namespace NotLogging
/// Program wide initialization method
/// </summary>
/// <param name="args"></param>
- private static int ProgramInit(String[] args)
+ private static int ProgramInit(String[] args)
{
int runLength = 0;
- try
+ try
{
- runLength = int.Parse(args[1]);
+ runLength = int.Parse(args[1]);
}
- catch(Exception e)
+ catch(Exception e)
{
System.Console.Error.WriteLine(e);
Usage();
- }
-
+ }
+
ConsoleAppender appender = new ConsoleAppender(new SimpleLayout());
-
- if("false" == args[0])
+
+ if("false" == args[0])
{
// nothing to do
- }
- else if ("true" == args[0])
+ }
+ else if ("true" == args[0])
{
System.Console.WriteLine("Flagging as shipped code.");
((Hierarchy)LogManager.GetRepository()).Threshold = log4net.Core.Level.Warn;
- }
- else
+ }
+ else
{
Usage();
}
@@ -114,22 +114,22 @@ namespace NotLogging
((Hierarchy)LogManager.GetRepository()).Root.AddAppender(appender);
return runLength;
- }
-
+ }
+
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
- static void Main(string[] argv)
+ static void Main(string[] argv)
{
- if (System.Diagnostics.Debugger.IsAttached)
+ if (System.Diagnostics.Debugger.IsAttached)
{
WARM_UP_CYCLES = 0;
argv = new string[] { "false", "2" };
}
- if(argv.Length != 2)
+ if(argv.Length != 2)
{
Usage();
}
@@ -139,11 +139,11 @@ namespace NotLogging
System.Console.WriteLine();
System.Console.Write("Warming Up...");
- if (WARM_UP_CYCLES > 0)
+ if (WARM_UP_CYCLES > 0)
{
- foreach(ILog logger in LOG_ARRAY)
+ foreach(ILog logger in LOG_ARRAY)
{
- foreach(TimedTest timedTest in TIMED_TESTS)
+ foreach(TimedTest timedTest in TIMED_TESTS)
{
timedTest.Run(logger, WARM_UP_CYCLES);
}
@@ -154,7 +154,7 @@ namespace NotLogging
// Calculate maximum description length
int maxDescLen = 0;
- foreach(TimedTest timedTest in TIMED_TESTS)
+ foreach(TimedTest timedTest in TIMED_TESTS)
{
maxDescLen = Math.Max(maxDescLen, timedTest.Description.Length);
}
@@ -164,10 +164,10 @@ namespace NotLogging
ArrayList averageData = new ArrayList();
- foreach(TimedTest timedTest in TIMED_TESTS)
+ foreach(TimedTest timedTest in TIMED_TESTS)
{
double total = 0;
- foreach(ILog logger in LOG_ARRAY)
+ foreach(ILog logger in LOG_ARRAY)
{
delta = timedTest.Run(logger, runLength);
System.Console.WriteLine(string.Format(formatString, timedTest.Description, delta, ((Logger)logger.Logger).Name));
@@ -182,7 +182,7 @@ namespace NotLogging
System.Console.WriteLine("Averages:");
System.Console.WriteLine();
- foreach(object[] pair in averageData)
+ foreach(object[] pair in averageData)
{
string avgFormatString = "{0,-"+(maxDescLen+1)+"} {1,9:G} ticks.";
System.Console.WriteLine(string.Format(avgFormatString, ((TimedTest)pair[0]).Description, ((double)pair[1])));
@@ -190,7 +190,7 @@ namespace NotLogging
}
}
- abstract class TimedTest
+ abstract class TimedTest
{
abstract public double Run(ILog log, long runLength);
abstract public string Description {get;}
@@ -198,12 +198,12 @@ namespace NotLogging
#region Tests calling Debug(string)
- class SimpleMessage_Bare : TimedTest
+ class SimpleMessage_Bare : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
log.Debug("msg");
}
@@ -212,39 +212,39 @@ namespace NotLogging
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "log.Debug(\"msg\");"; }
}
}
- class ComplexMessage_MethodGuard_Bare : TimedTest
+ class ComplexMessage_MethodGuard_Bare : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
- if(log.IsDebugEnabled)
+ if(log.IsDebugEnabled)
{
log.Debug("msg" + i + "msg");
}
- }
+ }
DateTime after = DateTime.Now;
TimeSpan diff = after - before;
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "if(log.IsDebugEnabled) log.Debug(\"msg\" + i + \"msg\");"; }
}
}
- class ComplexMessage_Bare : TimedTest
+ class ComplexMessage_Bare : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
log.Debug("msg" + i + "msg");
}
@@ -253,7 +253,7 @@ namespace NotLogging
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "log.Debug(\"msg\" + i + \"msg\");"; }
}
@@ -263,12 +263,12 @@ namespace NotLogging
#region Tests calling Debug(new object[] { ... })
- class SimpleMessage_Array : TimedTest
+ class SimpleMessage_Array : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
log.Debug(new object[] { "msg" });
}
@@ -277,39 +277,39 @@ namespace NotLogging
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "log.Debug(new object[] { \"msg\" });"; }
}
}
- class ComplexMessage_MethodGuard_Array : TimedTest
+ class ComplexMessage_MethodGuard_Array : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
- if(log.IsDebugEnabled)
+ if(log.IsDebugEnabled)
{
log.Debug(new object[] { "msg" , i , "msg" });
}
- }
+ }
DateTime after = DateTime.Now;
TimeSpan diff = after - before;
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "if(log.IsDebugEnabled) log.Debug(new object[] { \"msg\" , i , \"msg\" });"; }
}
}
- class ComplexMessage_Array : TimedTest
+ class ComplexMessage_Array : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
log.Debug(new object[] { "msg" , i , "msg" });
}
@@ -318,7 +318,7 @@ namespace NotLogging
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "log.Debug(new object[] { \"msg\" , i , \"msg\" });"; }
}
@@ -328,54 +328,54 @@ namespace NotLogging
#region Tests calling Debug(string) (using class members)
- class ComplexMessage_MemberGuard_Bare : TimedTest
+ class ComplexMessage_MemberGuard_Bare : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
return (new Impl(log)).Run(runLength);
}
- override public string Description
+ override public string Description
{
get { return "if(m_isEnabled) m_log.Debug(\"msg\" + i + \"msg\");"; }
}
- class Impl
+ class Impl
{
private readonly ILog m_log;
private readonly bool m_isEnabled;
- public Impl(ILog log)
+ public Impl(ILog log)
{
m_log = log;
m_isEnabled = m_log.IsDebugEnabled;
}
- public double Run(long runLength)
+ public double Run(long runLength)
{
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
- if(m_isEnabled)
+ if(m_isEnabled)
{
m_log.Debug("msg" + i + "msg");
}
- }
+ }
DateTime after = DateTime.Now;
TimeSpan diff = after - before;
return ((double)diff.Ticks)/((double)runLength);
}
}
}
- class SimpleMessage_LocalGuard_Bare : TimedTest
+ class SimpleMessage_LocalGuard_Bare : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
bool isEnabled = log.IsDebugEnabled;
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
if (isEnabled) log.Debug("msg");
}
@@ -384,17 +384,17 @@ namespace NotLogging
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "if (isEnabled) log.Debug(\"msg\");"; }
}
}
- class SimpleMessage_MethodGuard_Bare : TimedTest
+ class SimpleMessage_MethodGuard_Bare : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
if (log.IsDebugEnabled) log.Debug("msg");
}
@@ -403,32 +403,32 @@ namespace NotLogging
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "if (log.IsDebugEnabled) log.Debug(\"msg\");"; }
}
}
- class ComplexMessage_LocalGuard_Bare : TimedTest
+ class ComplexMessage_LocalGuard_Bare : TimedTest
{
- override public double Run(ILog log, long runLength)
+ override public double Run(ILog log, long runLength)
{
bool isEnabled = log.IsDebugEnabled;
DateTime before = DateTime.Now;
- for(int i = 0; i < runLength; i++)
+ for(int i = 0; i < runLength; i++)
{
if(isEnabled) log.Debug("msg" + i + "msg");
- }
+ }
DateTime after = DateTime.Now;
TimeSpan diff = after - before;
return ((double)diff.Ticks)/((double)runLength);
}
- override public string Description
+ override public string Description
{
get { return "if (isEnabled) log.Debug(\"msg\" + i + \"msg\");"; }
}
}
- #endregion
+ #endregion
}
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Repository/SharedModule/cs/src/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Repository/SharedModule/cs/src/AssemblyInfo.cs b/examples/mono/1.0/Repository/SharedModule/cs/src/AssemblyInfo.cs
index ee75642..47fd3d2 100644
--- a/examples/mono/1.0/Repository/SharedModule/cs/src/AssemblyInfo.cs
+++ b/examples/mono/1.0/Repository/SharedModule/cs/src/AssemblyInfo.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -21,7 +21,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
//
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
@@ -29,29 +29,29 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyDescription("log4net SharedModule")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("log4net - SharedModule")]
-[assembly: AssemblyCulture("")]
+[assembly: AssemblyCulture("")]
//
-// In order to sign your assembly you must specify a key to use. Refer to the
+// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
-// Use the attributes below to control which key is used for signing.
+// Use the attributes below to control which key is used for signing.
//
-// Notes:
+// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
+// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
+// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Repository/SharedModule/cs/src/Math.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Repository/SharedModule/cs/src/Math.cs b/examples/mono/1.0/Repository/SharedModule/cs/src/Math.cs
index 64211dc..e18d269 100644
--- a/examples/mono/1.0/Repository/SharedModule/cs/src/Math.cs
+++ b/examples/mono/1.0/Repository/SharedModule/cs/src/Math.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs b/examples/mono/1.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs
index cc3415d..f22f11d 100644
--- a/examples/mono/1.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs
+++ b/examples/mono/1.0/Repository/SimpleApp/cs/src/AssemblyInfo.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -21,7 +21,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
//
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
@@ -29,29 +29,29 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyDescription("log4net SimpleApp")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("log4net - SimpleApp")]
-[assembly: AssemblyCulture("")]
+[assembly: AssemblyCulture("")]
//
-// In order to sign your assembly you must specify a key to use. Refer to the
+// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
-// Use the attributes below to control which key is used for signing.
+// Use the attributes below to control which key is used for signing.
//
-// Notes:
+// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
+// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
+// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Repository/SimpleApp/cs/src/EntryPoint.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Repository/SimpleApp/cs/src/EntryPoint.cs b/examples/mono/1.0/Repository/SimpleApp/cs/src/EntryPoint.cs
index a2a9f35..71dd756 100644
--- a/examples/mono/1.0/Repository/SimpleApp/cs/src/EntryPoint.cs
+++ b/examples/mono/1.0/Repository/SimpleApp/cs/src/EntryPoint.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -20,8 +20,8 @@
// Configure logging for this assembly using the 'SimpleApp.exe.log4net' file
[assembly: log4net.Config.XmlConfigurator(ConfigFileExtension="log4net", Watch=true)]
-// The following alias attribute can be used to capture the logging
-// repository for the 'SimpleModule' assembly. Without specifying this
+// The following alias attribute can be used to capture the logging
+// repository for the 'SimpleModule' assembly. Without specifying this
// attribute the logging configuration for the 'SimpleModule' assembly
// will be read from the 'SimpleModule.dll.log4net' file. When this
// attribute is specified the configuration will be shared with this
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs b/examples/mono/1.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs
index 1c32a35..21ec7f1 100644
--- a/examples/mono/1.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs
+++ b/examples/mono/1.0/Repository/SimpleModule/cs/src/AssemblyInfo.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -21,7 +21,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
//
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
@@ -29,29 +29,29 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyDescription("log4net SimpleModule")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("log4net - SimpleModule")]
-[assembly: AssemblyCulture("")]
+[assembly: AssemblyCulture("")]
//
-// In order to sign your assembly you must specify a key to use. Refer to the
+// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
-// Use the attributes below to control which key is used for signing.
+// Use the attributes below to control which key is used for signing.
//
-// Notes:
+// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
+// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
+// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Repository/SimpleModule/cs/src/Math.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Repository/SimpleModule/cs/src/Math.cs b/examples/mono/1.0/Repository/SimpleModule/cs/src/Math.cs
index 3c01a79..0b4a0c0 100644
--- a/examples/mono/1.0/Repository/SimpleModule/cs/src/Math.cs
+++ b/examples/mono/1.0/Repository/SimpleModule/cs/src/Math.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -17,7 +17,7 @@
//
#endregion
-// We want this assembly to have a seperate logging repository to the
+// We want this assembly to have a seperate logging repository to the
// rest of the application. We will configure this repository seperatly.
[assembly: log4net.Config.Repository("SimpleModule")]
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs b/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs
index 5d78024..283e151 100644
--- a/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs
+++ b/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/AssemblyInfo.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -21,7 +21,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
//
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
@@ -29,29 +29,29 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyDescription("log4net ConsoleApp")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("log4net - TestApp")]
-[assembly: AssemblyCulture("")]
+[assembly: AssemblyCulture("")]
//
-// In order to sign your assembly you must specify a key to use. Refer to the
+// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
-// Use the attributes below to control which key is used for signing.
+// Use the attributes below to control which key is used for signing.
//
-// Notes:
+// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
+// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
+// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs
----------------------------------------------------------------------
diff --git a/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs b/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs
index d1c53d1..a58ea2e 100644
--- a/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs
+++ b/examples/mono/1.0/Tutorials/ConsoleApp/cs/src/LoggingExample.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -70,7 +70,7 @@ namespace ConsoleApp
{
log.Warn("This should have an NDC message");
- // Set a Mapped Diagnostic Context value
+ // Set a Mapped Diagnostic Context value
log4net.MDC.Set("auth", "auth-none");
log.Warn("This should have an MDC message for the key 'auth'");
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/AsyncAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/AsyncAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/AsyncAppender.cs
index 2682757..41f8d3e 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/AsyncAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/AsyncAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -44,7 +44,7 @@ namespace SampleAppendersApp.Appender
set { m_name = value; }
}
- public void ActivateOptions()
+ public void ActivateOptions()
{
}
@@ -103,7 +103,7 @@ namespace SampleAppendersApp.Appender
#region IAppenderAttachable Members
- public void AddAppender(IAppender newAppender)
+ public void AddAppender(IAppender newAppender)
{
if (newAppender == null)
{
@@ -111,7 +111,7 @@ namespace SampleAppendersApp.Appender
}
lock(this)
{
- if (m_appenderAttachedImpl == null)
+ if (m_appenderAttachedImpl == null)
{
m_appenderAttachedImpl = new log4net.Util.AppenderAttachedImpl();
}
@@ -129,7 +129,7 @@ namespace SampleAppendersApp.Appender
{
return AppenderCollection.EmptyCollection;
}
- else
+ else
{
return m_appenderAttachedImpl.Appenders;
}
@@ -137,7 +137,7 @@ namespace SampleAppendersApp.Appender
}
}
- public IAppender GetAppender(string name)
+ public IAppender GetAppender(string name)
{
lock(this)
{
@@ -150,11 +150,11 @@ namespace SampleAppendersApp.Appender
}
}
- public void RemoveAllAppenders()
+ public void RemoveAllAppenders()
{
lock(this)
{
- if (m_appenderAttachedImpl != null)
+ if (m_appenderAttachedImpl != null)
{
m_appenderAttachedImpl.RemoveAllAppenders();
m_appenderAttachedImpl = null;
@@ -162,11 +162,11 @@ namespace SampleAppendersApp.Appender
}
}
- public IAppender RemoveAppender(IAppender appender)
+ public IAppender RemoveAppender(IAppender appender)
{
lock(this)
{
- if (appender != null && m_appenderAttachedImpl != null)
+ if (appender != null && m_appenderAttachedImpl != null)
{
return m_appenderAttachedImpl.RemoveAppender(appender);
}
@@ -174,7 +174,7 @@ namespace SampleAppendersApp.Appender
return null;
}
- public IAppender RemoveAppender(string name)
+ public IAppender RemoveAppender(string name)
{
lock(this)
{
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FastDbAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FastDbAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FastDbAppender.cs
index 4bfdd0d..bb56a4e 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FastDbAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FastDbAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -64,7 +64,7 @@ namespace SampleAppendersApp.Appender
set { m_connectionString = value; }
}
- public virtual void ActivateOptions()
+ public virtual void ActivateOptions()
{
}
@@ -146,31 +146,31 @@ namespace SampleAppendersApp.Appender
command.CommandText = "INSERT INTO [LogTable] ([Time],[Logger],[Level],[Thread],[Message]) VALUES (@Time,@Logger,@Level,@Thread,@Message)";
IDbDataParameter param;
-
+
// @Time
param = command.CreateParameter();
param.ParameterName = "@Time";
param.DbType = DbType.DateTime;
command.Parameters.Add(param);
-
+
// @Logger
param = command.CreateParameter();
param.ParameterName = "@Logger";
param.DbType = DbType.String;
command.Parameters.Add(param);
-
+
// @Level
param = command.CreateParameter();
param.ParameterName = "@Level";
param.DbType = DbType.String;
command.Parameters.Add(param);
-
+
// @Thread
param = command.CreateParameter();
param.ParameterName = "@Thread";
param.DbType = DbType.String;
command.Parameters.Add(param);
-
+
// @Message
param = command.CreateParameter();
param.ParameterName = "@Message";
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FireEventAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FireEventAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FireEventAppender.cs
index e0be018..b7087f6 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FireEventAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/FireEventAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -73,9 +73,9 @@ namespace SampleAppendersApp.Appender
set { m_fixFlags = value; }
}
- override protected void Append(LoggingEvent loggingEvent)
+ override protected void Append(LoggingEvent loggingEvent)
{
- // Because we the LoggingEvent may be used beyond the lifetime
+ // Because we the LoggingEvent may be used beyond the lifetime
// of the Append() method we must fix any volatile data in the event
loggingEvent.Fix = this.Fix;
@@ -85,6 +85,6 @@ namespace SampleAppendersApp.Appender
{
handler(this, new MessageLoggedEventArgs(loggingEvent));
}
- }
+ }
}
}
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageBoxAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageBoxAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageBoxAppender.cs
index 0877ea4..855a948 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageBoxAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageBoxAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -55,7 +55,7 @@ namespace SampleAppendersApp.Appender
set { m_titleLayout = value; }
}
- override protected void Append(LoggingEvent loggingEvent)
+ override protected void Append(LoggingEvent loggingEvent)
{
MessageBoxIcon messageBoxIcon = MessageBoxIcon.Information;
@@ -81,7 +81,7 @@ namespace SampleAppendersApp.Appender
}
MessageBox.Show(message, title, MessageBoxButtons.OK, messageBoxIcon);
- }
+ }
public override void ActivateOptions()
{
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageObjectExpanderAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageObjectExpanderAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageObjectExpanderAppender.cs
index 56e5ddb..c33a5ee 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageObjectExpanderAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MessageObjectExpanderAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MsmqAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MsmqAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MsmqAppender.cs
index 4c12b55..41fdf39 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MsmqAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/MsmqAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -55,7 +55,7 @@ namespace SampleAppendersApp.Appender
set { m_labelLayout = value; }
}
- override protected void Append(LoggingEvent loggingEvent)
+ override protected void Append(LoggingEvent loggingEvent)
{
if (m_queue == null)
{
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternFileAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternFileAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternFileAppender.cs
index 6e6c3c0..65cad5d 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternFileAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternFileAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -56,14 +56,14 @@ namespace SampleAppendersApp.Appender
set { m_encoding = value; }
}
- public SecurityContext SecurityContext
+ public SecurityContext SecurityContext
{
get { return m_securityContext; }
set { m_securityContext = value; }
}
- override public void ActivateOptions()
- {
+ override public void ActivateOptions()
+ {
base.ActivateOptions();
if (m_securityContext == null)
@@ -72,7 +72,7 @@ namespace SampleAppendersApp.Appender
}
}
- override protected void Append(LoggingEvent loggingEvent)
+ override protected void Append(LoggingEvent loggingEvent)
{
try
{
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppender.cs
index 08f074b..83cf9ff 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -25,7 +25,7 @@ using log4net.Util;
namespace SampleAppendersApp.Appender
{
/// <summary>
- ///
+ ///
/// </summary>
/// <example>
/// <code>
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppenderParameter.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppenderParameter.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppenderParameter.cs
index 6cf95ff..f53d47c 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppenderParameter.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/PatternLayoutAdoNetAppenderParameter.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/SimpleSmtpAppender.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/SimpleSmtpAppender.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/SimpleSmtpAppender.cs
index 18235c0..66efcc6 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/SimpleSmtpAppender.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/Appender/SimpleSmtpAppender.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -38,27 +38,27 @@ namespace SampleAppendersApp.Appender
public class SimpleSmtpAppender : AppenderSkeleton
{
public SimpleSmtpAppender()
- {
+ {
}
- public string To
+ public string To
{
get { return m_to; }
set { m_to = value; }
}
- public string From
+ public string From
{
get { return m_from; }
set { m_from = value; }
}
- public PatternLayout Subject
+ public PatternLayout Subject
{
get { return m_subjectLayout; }
set { m_subjectLayout = value; }
}
-
+
public string SmtpHost
{
get { return m_smtpHost; }
@@ -67,10 +67,10 @@ namespace SampleAppendersApp.Appender
#region Override implementation of AppenderSkeleton
- override protected void Append(LoggingEvent loggingEvent)
+ override protected void Append(LoggingEvent loggingEvent)
{
- try
- {
+ try
+ {
StringWriter writer = new StringWriter(System.Globalization.CultureInfo.InvariantCulture);
string t = Layout.Header;
@@ -110,11 +110,11 @@ namespace SampleAppendersApp.Appender
}
SmtpMail.Send(mailMessage);
- }
- catch(Exception e)
+ }
+ catch(Exception e)
{
ErrorHandler.Error("Error occurred while sending e-mail notification.", e);
- }
+ }
}
override protected bool RequiresLayout
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/AssemblyInfo.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/AssemblyInfo.cs
index 67b8653..758497d 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/AssemblyInfo.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/AssemblyInfo.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -21,7 +21,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
//
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
@@ -29,29 +29,29 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyDescription("log4net SampleAppendersApp")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("log4net - SampleAppendersApp")]
-[assembly: AssemblyCulture("")]
+[assembly: AssemblyCulture("")]
//
-// In order to sign your assembly you must specify a key to use. Refer to the
+// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
-// Use the attributes below to control which key is used for signing.
+// Use the attributes below to control which key is used for signing.
//
-// Notes:
+// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
+// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
+// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/LoggingExample.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/LoggingExample.cs b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/LoggingExample.cs
index 2b22711..c822f9a 100644
--- a/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/LoggingExample.cs
+++ b/examples/net/2.0/Appenders/SampleAppendersApp/cs/src/LoggingExample.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/WmiAppender/cs/src/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/WmiAppender/cs/src/AssemblyInfo.cs b/examples/net/2.0/Appenders/WmiAppender/cs/src/AssemblyInfo.cs
index 16c39de..afff699 100644
--- a/examples/net/2.0/Appenders/WmiAppender/cs/src/AssemblyInfo.cs
+++ b/examples/net/2.0/Appenders/WmiAppender/cs/src/AssemblyInfo.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
@@ -21,7 +21,7 @@ using System.Reflection;
using System.Runtime.CompilerServices;
//
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
@@ -35,29 +35,29 @@ using System.Runtime.CompilerServices;
#endif
[assembly: AssemblyProduct("log4net")]
-[assembly: AssemblyCulture("")]
+[assembly: AssemblyCulture("")]
//
-// In order to sign your assembly you must specify a key to use. Refer to the
+// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
-// Use the attributes below to control which key is used for signing.
+// Use the attributes below to control which key is used for signing.
//
-// Notes:
+// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
-// (*) If the KeyFile and the KeyName values are both specified, the
+// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
-// (2) If the KeyName does not exist and the KeyFile does exist, the key
+// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
-// located in the project directory, you would specify the AssemblyKeyFile
+// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
http://git-wip-us.apache.org/repos/asf/logging-log4net/blob/8a5b4204/examples/net/2.0/Appenders/WmiAppender/cs/src/IWmiBoundEvent.cs
----------------------------------------------------------------------
diff --git a/examples/net/2.0/Appenders/WmiAppender/cs/src/IWmiBoundEvent.cs b/examples/net/2.0/Appenders/WmiAppender/cs/src/IWmiBoundEvent.cs
index 0ccd376..3fe3ef7 100644
--- a/examples/net/2.0/Appenders/WmiAppender/cs/src/IWmiBoundEvent.cs
+++ b/examples/net/2.0/Appenders/WmiAppender/cs/src/IWmiBoundEvent.cs
@@ -1,10 +1,10 @@
#region Apache License
//
-// Licensed to the Apache Software Foundation (ASF) under one or more
+// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
-// this work for additional information regarding copyright ownership.
+// this work for additional information regarding copyright ownership.
// The ASF licenses this file to you under the Apache License, Version 2.0
-// (the "License"); you may not use this file except in compliance with
+// (the "License"); you may not use this file except in compliance with
// the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0