Then all you need to do is programmatically add a ConsoleAppender to the
root logger.
Something like:
BasicConfigurator.configure();
OR
Logger.getLoggerRepository().getRootLogger(new ConsoleAppender(new
PatternLayout("[%d{ISO8601} %-5p][%20.20c][%t] %m%n")));
That way there is no need to use log4j.properties.
cheers,
Paul Smith
> -----Original Message-----
> From: Vinodh Srinivasasainagendra [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 30, 2004 9:21 AM
> To: 'Log4J Users List'
> Subject: RE: Configure Log4J for use with Java web start console
>
>
> I was trying to use log4j with Java web Start without shipping a
> log4j.properties file with the application. Directing logging messages to
> two windows (Applications text area as well as web -start console) was the
> part I was testing.
> In Java Web Start, if messages are directed to its console then I set JWS
> log the directed messages on to a file.
> Thanks
> vin
>
> -----Original Message-----
> From: Paul Smith [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 29, 2004 5:30 PM
> To: Log4J Users List
> Subject: RE: Configure Log4J for use with Java web start console
>
> You just need to tell log4j to use a ConsoleAppender. Then you
> need to run
> the java web start control panel and turn on the console logging
> to a file.
>
> But, why bother? Why not just use log4j to write to a file via
> FileAppender or something?
>
> cheers,
>
> Paul Smith
>
> > -----Original Message-----
> > From: Vinodh Srinivasasainagendra [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 30, 2004 3:51 AM
> > To: 'Log4J Users List'
> > Subject: Configure Log4J for use with Java web start console
> >
> >
> > I am trying to configure Log4J to use with Java web start console.
> > I am using Java Web start 1.4.2_05 and Log4J 1.2.8.
> > I am unable to redirect my logging messages to Java Web Start console.
> > Thanks
> > vin
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]