|
1 | 1 | // ---------------------------------------------// Copyright 2016 Serilog Contributors
|
2 |
| -// |
| 2 | +// |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License");
|
4 | 4 | // you may not use this file except in compliance with the License.
|
5 | 5 | // You may obtain a copy of the License at
|
6 |
| -// |
| 6 | +// |
7 | 7 | // http://www.apache.org/licenses/LICENSE-2.0
|
8 |
| -// |
| 8 | +// |
9 | 9 | // Unless required by applicable law or agreed to in writing, software
|
10 | 10 | // distributed under the License is distributed on an "AS IS" BASIS,
|
11 | 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@@ -58,9 +58,9 @@ public static class LogEventExtensions
|
58 | 58 | public static void ForwardPropertiesToTelemetryProperties(this LogEvent logEvent,
|
59 | 59 | ISupportProperties telemetryProperties,
|
60 | 60 | IFormatProvider formatProvider,
|
61 |
| - bool includeLogLevel = false, |
| 61 | + bool includeLogLevel = true, |
62 | 62 | bool includeRenderedMessage = true,
|
63 |
| - bool includeMessageTemplate = false) |
| 63 | + bool includeMessageTemplate = true) |
64 | 64 | {
|
65 | 65 | if (logEvent == null) throw new ArgumentNullException(nameof(logEvent));
|
66 | 66 | if (telemetryProperties == null) throw new ArgumentNullException(nameof(telemetryProperties));
|
@@ -103,9 +103,9 @@ public static void ForwardPropertiesToTelemetryProperties(this LogEvent logEvent
|
103 | 103 | public static ExceptionTelemetry ToDefaultExceptionTelemetry(
|
104 | 104 | this LogEvent logEvent,
|
105 | 105 | IFormatProvider formatProvider,
|
106 |
| - bool includeLogLevelAsProperty = false, |
| 106 | + bool includeLogLevelAsProperty = true, |
107 | 107 | bool includeRenderedMessageAsProperty = true,
|
108 |
| - bool includeMessageTemplateAsProperty = false) |
| 108 | + bool includeMessageTemplateAsProperty = true) |
109 | 109 | {
|
110 | 110 | if (logEvent == null) throw new ArgumentNullException(nameof(logEvent));
|
111 | 111 | if (logEvent.Exception == null) throw new ArgumentException("Must have an Exception", nameof(logEvent));
|
@@ -146,9 +146,9 @@ public static ExceptionTelemetry ToDefaultExceptionTelemetry(
|
146 | 146 | public static EventTelemetry ToDefaultEventTelemetry(
|
147 | 147 | this LogEvent logEvent,
|
148 | 148 | IFormatProvider formatProvider,
|
149 |
| - bool includeLogLevelAsProperty = false, |
| 149 | + bool includeLogLevelAsProperty = true, |
150 | 150 | bool includeRenderedMessageAsProperty = true,
|
151 |
| - bool includeMessageTemplateAsProperty = false) |
| 151 | + bool includeMessageTemplateAsProperty = true) |
152 | 152 | {
|
153 | 153 | if (logEvent == null) throw new ArgumentNullException(nameof(logEvent));
|
154 | 154 |
|
|
0 commit comments