Hello,
If you're on a *nix system just log to a file and use 'tail -f log' to
make the output appear on the console.
On Mon, 2002-02-25 at 05:03, Emperor wrote:
> Thx, and how do I redirect the log both to console and file? How do I
> declare a log file in version 1.1?
>
> >
> > Opps. remove append, rotation element.
> >
> > ----- Original Message -----
> > From: "Eung-ju Park" <[EMAIL PROTECTED]>
> > To: "Avalon Developers List" <[EMAIL PROTECTED]>
> > Sent: Monday, February 25, 2002 9:28 AM
> > Subject: Re: redirect log to console
> >
> >
> > >
> > > ----- Original Message -----
> > > From: "Emperor" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, February 25, 2002 3:30 AM
> > > Subject: redirect log to console
> > >
> > >
> > > > How can I redirect the log output to the console by editing the
> > > > environmment xml file?
> > >
> > > Use 1.1 log configuration.
> > >
> > > <logs version="1.1">
> > > <factories>
> > > <factory type="block"
> > >
> > >
> > class="org.apache.avalon.excalibur.logger.factory.StreamTarget
> > Factory"/>
> > > </factories>
> > >
> > > <categories>
> > > <category name="" log-level="INFO">
> > > <log-target id-ref="default"/>
> > > </category>
> > > </categories>
> > >
> > > <targets>
> > > <block id="default">
> > > <stream>System.out</stream>
> > > <append>true</append>
> > > <format
> > > type="pattern"><![CDATA[%{time:yyyyMMddHHmmss}%11.11{priority}
> > > <<%{category}>>: %{message}\n%{throwable}]]></format>
> > > <rotation type="unique" pattern="yyyyMMdd" suffix=".log">
> > > <date>yyyyMMdd</date>
> > > </rotation>
> > > </block>
> > > </targets>
> > > </logs>
> > >
> > > >
> > > > Thx,
> > > >
> > > > Nils
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:avalon-dev-> [EMAIL PROTECTED]>
> > For
> > additional commands,
> > e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
Richard Wallace
AIM, Inc. (www.a--i--m.com)
Information Systems Consultants
"Providing New Technology,
the Old-Fashioned Way"
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>