+ protected override Task WriteAsyncTask(LogEventInfo logEvent, CancellationToken token)
+ {
+ return CustomWriteAsync(logEvent, token);
+ }
+
+ private async Task CustomWriteAsync(LogEventInfo logEvent, CancellationToken token)
+ {
+ await MyLogMethodAsync(logEvent, token).ConfigureAwait(false);
+ }
+
+ protected override Task WriteAsyncTask(LogEventInfo logEvent, CancellationToken token)
+ {
+ return CustomWriteAsync(logEvent, token);
+ }
+
+ private async Task CustomWriteAsync(LogEventInfo logEvent, CancellationToken token)
+ {
+ await MyLogMethodAsync(logEvent, token).ConfigureAwait(false);
+ }
+ - To set up the target in the configuration file, - use the following syntax: -
-
- - This assumes just one target and a single rule. More configuration - options are described here. -
-- To set up the log target programmatically use code like this: -
-
- ${longdate}|${level:uppercase=true}|${logger}|${message}
- ${longdate}|${level:uppercase=true}|${logger}|${message}
-
+ protected override Task WriteAsyncTask(LogEventInfo logEvent, CancellationToken token)
+ {
+ return CustomWriteAsync(logEvent, token);
+ }
+
+ private async Task CustomWriteAsync(LogEventInfo logEvent, CancellationToken token)
+ {
+ await MyLogMethodAsync(logEvent, token).ConfigureAwait(false);
+ }
+
+ protected override Task WriteAsyncTask(LogEventInfo logEvent, CancellationToken token)
+ {
+ return CustomWriteAsync(logEvent, token);
+ }
+
+ private async Task CustomWriteAsync(LogEventInfo logEvent, CancellationToken token)
+ {
+ await MyLogMethodAsync(logEvent, token).ConfigureAwait(false);
+ }
+
+ protected override Task WriteAsyncTask(LogEventInfo logEvent, CancellationToken token)
+ {
+ return CustomWriteAsync(logEvent, token);
+ }
+
+ private async Task CustomWriteAsync(LogEventInfo logEvent, CancellationToken token)
+ {
+ await MyLogMethodAsync(logEvent, token).ConfigureAwait(false);
+ }
+
+ protected override Task WriteAsyncTask(LogEventInfo logEvent, CancellationToken token)
+ {
+ return CustomWriteAsync(logEvent, token);
+ }
+
+ private async Task CustomWriteAsync(LogEventInfo logEvent, CancellationToken token)
+ {
+ await MyLogMethodAsync(logEvent, token).ConfigureAwait(false);
+ }
+ /*...*/ containing the specified text.
+ Writes a comment
@@ -2044,7 +1956,7 @@
Creates a /*...*/ containing the specified text.
+ Writes a comment Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of
@@ -4412,36 +4402,6 @@
@@ -6209,20 +6165,20 @@
Gets a value indicating whether the class can return line information.
[JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
[JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
/*...*/ containing the specified text.
+ Writes a comment
@@ -7709,22 +7707,22 @@
/*...*/ containing the specified text.
+ Writes a comment /*...*/ containing the specified text.
+ Writes a comment
@@ -2098,7 +2010,7 @@
Creates a /*...*/ containing the specified text.
+ Writes a comment Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of
@@ -4545,36 +4535,6 @@
@@ -5245,20 +5201,20 @@
Gets a value indicating whether the class can return line information.
[JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
[JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
/*...*/ containing the specified text.
+ Writes a comment
@@ -6769,22 +6767,22 @@
/*...*/ containing the specified text.
+ Writes a comment /*...*/ containing the specified text.
+ Writes a comment
-
-
+
+
+
+
+
+
+
+
+
[JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
+
+
+ [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
+
+ [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
+
@@ -1242,22 +6967,22 @@
+
+ /*...*/ containing the specified text.
- /*...*/ containing the specified text.
+ Writes a comment
-
-
-
-
-
- /*...*/ containing the specified text.
-
-
-
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
-
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
- /*...*/ containing the specified text.
+ Writes a comment
+
+
-
-
-
-
-
- /*...*/ containing the specified text.
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
-
-
-
-
[JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
-
- /*...*/ containing the specified text.
-
@@ -6977,22 +1249,22 @@
+ [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
+
+ [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
+
-
- /*...*/ containing the specified text.
+ Writes a comment
+
+
+
+
+
+
+
+
+
+
+
[JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
@@ -359,22 +1153,22 @@
[JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
/*...*/ containing the specified text.
+ Writes a comment /*...*/ containing the specified text.
+ Writes a comment
-
-
- /*...*/ containing the specified text.
-
@@ -4501,7 +5612,7 @@
Creates a
/*...*/ containing the specified text.
+ Writes a comment
+
+
+
@@ -7725,11 +9243,11 @@
The serialization context.
The reference to resolve.
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of
+
+
+ [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
+
+ [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
+
+
+ [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
+
+ [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
+
+
+
+
+
+
+
+
+
+
+
+ /*...*/ containing the specified text.
+ Writes a comment
[JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
@@ -1015,22 +1054,22 @@
[JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
/*...*/ containing the specified text.
+ Writes a comment /*...*/ containing the specified text.
+ Writes a comment
@@ -3931,7 +4029,7 @@
Creates a
/*...*/ containing the specified text.
+ Writes a comment
@@ -6412,7 +6517,7 @@
@@ -7300,11 +7428,11 @@
The serialization context.
The reference to resolve.
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of /*...*/ containing the specified text.
+ Writes a comment
[JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
@@ -1114,22 +1153,22 @@
[JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })]
+
[JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })]
+
/*...*/ containing the specified text.
+ Writes a comment /*...*/ containing the specified text.
+ Writes a comment
@@ -4181,7 +5584,7 @@
Creates a
/*...*/ containing the specified text.
+ Writes a comment
@@ -6709,7 +8331,7 @@
@@ -7598,11 +9243,11 @@
The serialization context.
The reference to resolve.
- Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of Info will exclude Verbose messages and include Info,
- Warning and Error messages.
+ For example a filter level of