@@ -27,7 +27,7 @@ public class Log4NetTextFormatterOptionsBuilder
27
27
/// <para>The default value has prefix <c>log4net</c> and namespace <c>http://logging.apache.org/log4net/schemas/log4net-events-1.2/</c>.</para>
28
28
/// </summary>
29
29
/// <remarks>https://github.com/apache/logging-log4net/blob/rel/2.0.8/src/Layout/XmlLayout.cs#L49</remarks>
30
- public XmlQualifiedName ? Log4NetXmlNamespace { get ; private set ; } = new XmlQualifiedName ( "log4net" , "http://logging.apache.org/log4net/schemas/log4net-events-1.2/" ) ;
30
+ public XmlQualifiedName ? Log4NetXmlNamespace { get ; private set ; } = new ( "log4net" , "http://logging.apache.org/log4net/schemas/log4net-events-1.2/" ) ;
31
31
32
32
/// <summary>
33
33
/// The line ending used for log4net events.
@@ -39,14 +39,14 @@ public class Log4NetTextFormatterOptionsBuilder
39
39
/// The indentation settings used for log4net events. No indentation is used if <see langref="null"/>.
40
40
/// <para>The default value uses two spaces.</para>
41
41
/// </summary>
42
- public IndentationSettings ? IndentationSettings { get ; private set ; } = new IndentationSettings ( Indentation . Space , size : 2 ) ;
42
+ public IndentationSettings ? IndentationSettings { get ; private set ; } = new ( Indentation . Space , size : 2 ) ;
43
43
44
44
/// <summary>
45
45
/// The <see cref="PropertyFilter"/> applied on all Serilog properties.
46
46
/// <para>The default implementation always returns <c>true</c>, i.e. it doesn't filter out any property.</para>
47
47
/// </summary>
48
48
/// <remarks>If an exception is thrown while executing the filter, the default filter will be applied, i.e. the Serilog property will be included in the log4net properties.</remarks>
49
- public PropertyFilter FilterProperty { get ; private set ; } = ( logEvent , propertyName ) => true ;
49
+ public PropertyFilter FilterProperty { get ; private set ; } = ( _ , _ ) => true ;
50
50
51
51
/// <summary>
52
52
/// The <see cref="ExceptionFormatter"/> controlling how all exceptions are formatted.
@@ -177,11 +177,11 @@ public void UseLog4JCompatibility()
177
177
}
178
178
179
179
internal Log4NetTextFormatterOptions Build ( )
180
- => new Log4NetTextFormatterOptions ( FormatProvider , CDataMode , Log4NetXmlNamespace , CreateXmlWriterSettings ( LineEnding , IndentationSettings ) , FilterProperty , FormatException ) ;
180
+ => new ( FormatProvider , CDataMode , Log4NetXmlNamespace , CreateXmlWriterSettings ( LineEnding , IndentationSettings ) , FilterProperty , FormatException ) ;
181
181
182
182
private static XmlWriterSettings CreateXmlWriterSettings ( LineEnding lineEnding , IndentationSettings ? indentationSettings )
183
183
{
184
- return new XmlWriterSettings
184
+ return new ( )
185
185
{
186
186
Indent = ! ( indentationSettings is null ) ,
187
187
IndentChars = indentationSettings ? . ToString ( ) ?? "" ,
0 commit comments