Logger : Viewing realtime from another app ?  
Author Message
nos





PostPosted: 4/1/2004 11:25:00 AM Top

java-programmer, Logger : Viewing realtime from another app ? tail -f
should do it
if you specify a file length, the current file will be renamed
and a new one started when it fills up

"Bryce (Work)" <email***@***.com> wrote in message
news:email***@***.com...
> On Wed, 31 Mar 2004 17:50:23 +0100, "Webby" <email***@***.com>
> wrote:
>
> >Hi,
> >
> >I've been having a read of the Logger API introduced in 1.4. It looks
quite useful but does anyone
> >no if there is anyway of monitoring the logs in an application from a
seperate java application
> >written to display logs in real time. It would be useful if you could use
the logger monitor to turn
> >on and off different logging and also monitor what packages currently
have logging turned on.
>
> Well, if you are logging to a file, then its just a matter of reading
> that file, updating periodically...
>
> I haven't used the Logger API in 1.4, but I've used Log4J package from
> Apache jakarta project. It provides many appenders that allow you to
> write logs in different ways. Some examples of methods that already
> exist are:
>
> writing to consoles, files, GUI components, remote socket servers,
> JMS, NT Event Loggers, remote UNIX Syslog, JDBC, email...
>
> --
> now with more cowbell