More additions, lucky card based on day, redo of migrations because i messed up
This commit is contained in:
29
TOOHUCardAPI/nlog.config
Normal file
29
TOOHUCardAPI/nlog.config
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
autoReload="true"
|
||||
internalLogToConsole="true"
|
||||
throwConfigExceptions="true"
|
||||
internalLogLevel="Info" >
|
||||
<variable name="MicrosoftLevel" value="${level:lowercase=true:truncate=4:when=level==LogLevel.Info or level==LogLevel.Warn}${when:when=level==LogLevel.Error:inner=fail}${when:when=level==LogLevel.Fatal:inner=crit}${when:when=level==LogLevel.Debug:inner=dbug}${when:when=level==LogLevel.Trace:inner=trce}" />
|
||||
<variable name="MicrosoftLayout" value="${MicrosoftLevel}: ${logger}[${event-properties:EventId_Id:whenEmpty=0}]${newline} ${message}${onexception:inner=${newline}${exception:format=tostring}}" />
|
||||
|
||||
|
||||
<!-- the targets to write to -->
|
||||
<targets async="true">
|
||||
<target xsi:type="ColoredConsole" name="logconsole"
|
||||
layout="${MicrosoftLayout}"
|
||||
useDefaultRowHighlightingRules="false"
|
||||
>
|
||||
<highlight-word foregroundColor="DarkGreen" regex="^info" />
|
||||
<highlight-word foregroundColor="Yellow" regex="^warn" />
|
||||
<highlight-word foregroundColor="Black" backgroundColor="Red" regex="^fail" />
|
||||
<highlight-word foregroundColor="White" backgroundColor="Red" regex="^crit" />
|
||||
</target>
|
||||
</targets>
|
||||
|
||||
<!-- rules to map from logger name to target -->
|
||||
<rules>
|
||||
<logger name="*" minlevel="Trace" writeTo="logconsole" />
|
||||
</rules>
|
||||
</nlog>
|
||||
Reference in New Issue
Block a user