NLog.config 712 B

1234567891011121314151617
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  3. <targets>
  4. <target name="logfile" xsi:type="File" fileName="cefgluesm.log" layout="${longdate} Process:${processinfo} Thread:${threadid} ${level} ${message} ${exception:maxInnerExceptionLevel=50:format=ToString,StackTrace}${newline}"/>
  5. <target xsi:type="EventLog"
  6. name="event"
  7. layout="${message}"
  8. source="CefGlue"
  9. eventId="556"
  10. log="Application"
  11. />
  12. </targets>
  13. <rules>
  14. <logger name="*" minLevel="Error" writeTo="event" />
  15. <logger name="*" minLevel="Debug" writeTo="logfile"/>
  16. </rules>
  17. </nlog>