mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
toned down unittest logging.
This commit is contained in:
parent
2ba4b10a60
commit
922d4becc5
@ -328,10 +328,6 @@
|
|||||||
<Content Include="Files\Xem\Mappings.txt">
|
<Content Include="Files\Xem\Mappings.txt">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="log.config">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
||||||
</Content>
|
|
||||||
<None Include="Files\RSS\SizeParsing\nzbx_recent.json">
|
<None Include="Files\RSS\SizeParsing\nzbx_recent.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" autoReload="true">
|
|
||||||
<targets>
|
|
||||||
<target name="consoleTarget" xsi:type="ColoredConsole" layout="[${level}] ${logger}: ${message} ${exception:ToString}" />
|
|
||||||
<target name="udpTarget" xsi:type="Chainsaw" address="udp://127.0.0.1:20480"
|
|
||||||
includeCallSite="true" includeSourceInfo="true" includeNLogData="true" includeNDC="true" includeMDC="true">
|
|
||||||
<parameter name="exception" layout="${exception:format=ToString}" xsi:type="NLogViewerParameterInfo" />
|
|
||||||
<parameter name="processname" layout="${processname}" xsi:type="NLogViewerParameterInfo" />
|
|
||||||
<parameter name="stacktrace" layout="${stacktrace:topFrames=99}" xsi:type="NLogViewerParameterInfo" />
|
|
||||||
<parameter name="ThreadName" layout="${threadname}" xsi:type="NLogViewerParameterInfo" />
|
|
||||||
</target>
|
|
||||||
</targets>
|
|
||||||
<rules>
|
|
||||||
<logger name="*" minlevel="Trace" writeTo="consoleTarget"/>
|
|
||||||
<logger name="*" minlevel="Trace" writeTo="udpTarget"/>
|
|
||||||
</rules>
|
|
||||||
</nlog>
|
|
@ -14,9 +14,9 @@ protected static void InitLogging()
|
|||||||
if (LogManager.Configuration == null || LogManager.Configuration is XmlLoggingConfiguration)
|
if (LogManager.Configuration == null || LogManager.Configuration is XmlLoggingConfiguration)
|
||||||
{
|
{
|
||||||
LogManager.Configuration = new LoggingConfiguration();
|
LogManager.Configuration = new LoggingConfiguration();
|
||||||
var consoleTarget = new ConsoleTarget { Layout = "${message} ${exception}" };
|
var consoleTarget = new ConsoleTarget { Layout = "${level}: ${message} ${exception}" };
|
||||||
LogManager.Configuration.AddTarget(consoleTarget.GetType().Name, consoleTarget);
|
LogManager.Configuration.AddTarget(consoleTarget.GetType().Name, consoleTarget);
|
||||||
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Trace, consoleTarget));
|
LogManager.Configuration.LoggingRules.Add(new LoggingRule("*", LogLevel.Info, consoleTarget));
|
||||||
|
|
||||||
RegisterExceptionVerification();
|
RegisterExceptionVerification();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user