blob: 2030187c41ce9566b17703bb4a0cb1241b3a63b9 [file] [log] [blame]
<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter&nbsp;11.&nbsp;Serviceability and Diagnostics</title><meta content="DocBook XSL Stylesheets V1.76.0" name="generator"><link rel="home" href="index.html" title="Virgo User Guide"><link rel="up" href="index.html" title="Virgo User Guide"><link rel="prev" href="ch10s03.html" title="Configuring the Repository"><link rel="next" href="ch11s02.html" title="(Trace) Logging"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><td align="left" width="20%"><a accesskey="p" href="ch10s03.html">Prev</a>&nbsp;</td><th align="center" width="60%">&nbsp;</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="ch11s02.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter&nbsp;11.&nbsp;Serviceability and Diagnostics"><div class="titlepage"><div><div><h2 class="title"><a name="serviceability"></a>Chapter&nbsp;11.&nbsp;Serviceability and Diagnostics</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a href="ch11.html#serviceability-info-log">Event Logging</a></span></dt><dt><span class="section"><a href="ch11s02.html">(Trace) Logging</a></span></dt><dd><dl><dt><span class="section"><a href="ch11s02.html#serviceability-info-trace-app">Application Output</a></span></dt></dl></dd><dt><span class="section"><a href="ch11s03.html">Service Dumps</a></span></dt></dl></div><p>
Virgo supports two kinds of logging: <span class="emphasis"><em>Event Logging</em></span> and <span class="emphasis"><em>Trace logging</em></span> which is usually referred
to simply as <span class="emphasis"><em>Logging</em></span>. The difference between Event Logging and Logging is explained below, but both are configured in the
<code class="literal">serviceability.xml</code> file in the <code class="literal">configuration</code> directory. This file takes the form of a Logback configuration, Virgo
uses a Logback implementation behind the SLF4J logging interface.
</p><p>
For a description of the syntax and facilities provided by <code class="literal">serviceability.xml</code>
see the <span class="emphasis"><em>Logback</em></span> documentation (referenced in <a class="xref" href="apc.html" title="Appendix&nbsp;C.&nbsp; Further Reading">Appendix&nbsp;C.&nbsp;<i>
Further Reading
</i></a>).
</p><p>
</p><div class="section" title="Event Logging"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="serviceability-info-log"></a>Event Logging</h2></div></div></div><p>
Event logging records important events in Virgo. Each event is logged to
an event log file and is accompanied by a code enclosed in angle brackets.
An example is shown below:
</p><pre class="screen">
[2010-10-25 16:20:45.897] system-artifacts &lt;TC0010I&gt; Creating HTTP/1.1 connector with scheme http on port 8080.
</pre><p>
(For a description of the log code syntax, see <a class="xref" href="apa.html" title="Appendix&nbsp;A.&nbsp;Event log codes">Appendix&nbsp;A.&nbsp;<i>Event log codes</i></a>.)
The format of event log messages is fully configurable.
</p><p>
By default, event log messages are stored in <code class="literal">$SERVER_HOME/serviceability/eventlogs/eventlog.log</code>.
</p><p>
The default behaviour is that, once <code class="literal">eventlog.log</code> reaches a 10Mb limit, it rolls into a series of files named
<code class="literal">eventlog_</code><span class="emphasis"><em>i</em></span><code class="literal">.log</code> where <span class="emphasis"><em>i</em></span> ranges from 1 to 4, and event logging continues in
a new <code class="literal">eventlog.log</code> file.
</p></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch10s03.html">Prev</a>&nbsp;</td><td align="center" width="20%">&nbsp;</td><td align="right" width="40%">&nbsp;<a accesskey="n" href="ch11s02.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%">&nbsp;</td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%">&nbsp;</td></tr></table></div></body></html>