NLogViewer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

NLogViewer

Francis1
Hi,
 
I'm using the latest snapshot files (versioned 0.9.0 10/11/05) and I can't see anything in the nlogviewer.  What am I doing wrong?
 
Thanks,
 
Francis
 
Here's my config file:
 
<nlog autoReload="true" internalLogFile="nlog.txt" internalLogLevel="Error" >
    <targets>
        <target name="console" type="Console" />
       
  <target name="info" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}info.txt" />
 
  <target name="warn" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}warn.txt" />
 
        <target name="error" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}error.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${callsite}|${message}|${exception}|${stacktrace}" />
 
        <target name="debug" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}debug.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${callsite}|${message}" />
 
  <target name="trace" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}trace.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${callsite}|${message}" />
 
  <target name="fatal" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}fatal.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${callsite}|${message}|${exception}|${stacktrace}" />
  
  <target name="viewer" type="NLogViewer" address="udp://localhost:4000" />
 
    </targets>
 
    <rules>
        <logger name="*" level="Info" writeTo="info" />
        <logger name="*" level="Warn" writeTo="warn" />
        <logger name="*" level="Error" writeTo="error,console" />
        <logger name="*" level="Debug" writeTo="debug" />
        <logger name="*" level="Trace" writeTo="trace" />
        <logger name="*" level="Fatal" writeTo="fatal,console"  final="true" />
    </rules>
</nlog>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NLogViewer

Jarek Kowalski
Administrator
I see no "viewer" in any of the "writeTo" attributes. You should tell which rule should send their output to the viewer. Other than that, your config looks fine.
 
--
Jaroslaw Kowalski
http://blog.jkowalski.net/
----- Original Message -----
Sent: Monday, October 17, 2005 1:38 AM
Subject: [Nlog-list] NLogViewer

Hi,
 
I'm using the latest snapshot files (versioned 0.9.0 10/11/05) and I can't see anything in the nlogviewer.  What am I doing wrong?
 
Thanks,
 
Francis
 
Here's my config file:
 
<nlog autoReload="true" internalLogFile="nlog.txt" internalLogLevel="Error" >
    <targets>
        <target name="console" type="Console" />
       
  <target name="info" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}info.txt" />
 
  <target name="warn" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}warn.txt" />
 
        <target name="error" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}error.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${callsite}|${message}|${exception}|${stacktrace}" />
 
        <target name="debug" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}debug.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${callsite}|${message}" />
 
  <target name="trace" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}trace.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${callsite}|${message}" />
 
  <target name="fatal" type="File" filename="${basedir}/../logs/${date:format=/yyyy-MM-dd/}fatal.txt" layout="${longdate}|${level:uppercase=true}|${logger}|${callsite}|${message}|${exception}|${stacktrace}" />
  
  <target name="viewer" type="NLogViewer" address="udp://localhost:4000" />
 
    </targets>
 
    <rules>
        <logger name="*" level="Info" writeTo="info" />
        <logger name="*" level="Warn" writeTo="warn" />
        <logger name="*" level="Error" writeTo="error,console" />
        <logger name="*" level="Debug" writeTo="debug" />
        <logger name="*" level="Trace" writeTo="trace" />
        <logger name="*" level="Fatal" writeTo="fatal,console"  final="true" />
    </rules>
</nlog>
NLog Blog
Loading...