Skip to content

Commit 664452a

Browse files
authored
Update nlog.config to include scope props in console logs
Signed-off-by: Victor Chang <mocsharp@users.noreply.github.com>
1 parent 340f181 commit 664452a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/InformaticsGateway/nlog.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ limitations under the License.
4444
</target>
4545

4646
<!--Console Target for hosting lifetime messages to improve Docker / Visual Studio startup detection -->
47-
<target xsi:type="ColoredConsole" name="lifetimeConsole" layout="${longdate}|${event-properties:item=EventId:whenEmpty=0}|${uppercase:${level}}|${logger}|${scopenested}|${message} ${exception:format=tostring}" />
47+
<target xsi:type="ColoredConsole" name="lifetimeConsole" layout="${longdate}|${event-properties:item=EventId:whenEmpty=0}|${uppercase:${level}}|${logger}|${all-event-properties:includeScopeProperties=true}|${message} ${exception:format=tostring}" />
4848

4949
<target name="logstash" xsi:type="Network" address="${environment:LOGSTASH_URL}" newLine="true">
5050
<layout xsi:type="JsonLayout" IncludeEventProperties="true" IncludeScopeProperties="true">

0 commit comments

Comments
 (0)