mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Change log facility.
This commit is contained in:
25
Wox.Infrastructure/NLog.config
Normal file
25
Wox.Infrastructure/NLog.config
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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">
|
||||
|
||||
<!--
|
||||
See https://github.com/nlog/nlog/wiki/Configuration-file
|
||||
for information on customizing logging rules and outputs.
|
||||
You can use http://www.legitlog.com/ to visualize those logs
|
||||
-->
|
||||
<!-- log level
|
||||
Trace - very detailed logs, which may include high-volume information such as protocol payloads. This log level is typically only enabled during development
|
||||
Debug - debugging information, less detailed than trace, typically not enabled in production environment.
|
||||
Info - information messages, which are normally enabled in production environment
|
||||
Warn - warning messages, typically for non-critical issues, which can be recovered or which are temporary failures
|
||||
Error - error messages
|
||||
Fatal - very serious errors-->
|
||||
<targets>
|
||||
<target xsi:type="File" name="file" fileName="${basedir}/logs/${shortdate}.log"/>
|
||||
<target xsi:type="Console" name="console" />
|
||||
</targets>
|
||||
<rules>
|
||||
<logger name="*" minlevel="Warn" writeTo="file" />
|
||||
<logger name="*" minlevel="Debug" writeTo="console" />
|
||||
</rules>
|
||||
</nlog>
|
||||
Reference in New Issue
Block a user