[Jetty-support] [jetty-support] Log level setting

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Jetty-support] [jetty-support] Log level setting

Saminda Abeyruwan-3
Hi All,

Jetty 6.0.1 uses its own logging mechanism on top of org.slf4j.

My application uses commons logging and it has the following pattern.
%5p [%d] %x %m%n  --> Ex : INFO [2006-10-24 12:08:29,667]  Shutdown complete.
Above, I use memory appender and file appender.

Apparently I've set the System.getProperty("org.mortbay.log.class","org.mortbay.log.Slf4jLog") property, and its output as follows,
70767 [main] INFO org.mortbay.log - jetty-6.0.1 --> and it's print in Standard output.

How should i be able to direct "org.mortbay.log" to to file system and is it possible to set a pattern as %5p [%d] %x %m%n in this.

Please aid me on this.

Thank you

Saminda

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: [Jetty-support] [jetty-support] Log level setting

Ceki Gulcu

Reading your message mentioning the conversion pattern "%5p [%d]...", it looks like you wish to use log4j with Jetty. As far as I know, this can be accomplished by adding slf4j-log4j12.jar into $JETTY_HOME/lib.

I hope this helps,

Saminda Abeyruwan-3 wrote
Hi All,

Jetty 6.0.1 uses its own logging mechanism on top of org.slf4j.

My application uses commons logging and it has the following pattern.
%5p [%d] %x %m%n  --> Ex : INFO [2006-10-24 12:08:29,667]  Shutdown
complete.
Above, I use memory appender and file appender.

Apparently I've set the System.getProperty("org.mortbay.log.class","
org.mortbay.log.Slf4jLog") property, and its output as follows,
70767 [main] INFO org.mortbay.log - jetty-6.0.1 --> and it's print in
Standard output.

How should i be able to direct "org.mortbay.log" to to file system and is it
possible to set a pattern as %5p [%d] %x %m%n in this.

Please aid me on this.

Thank you

Saminda

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jetty-support mailing list
Jetty-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support
Reply | Threaded
Open this post in threaded view
|

Re: [Jetty-support] [jetty-support] Log level setting

Saminda Abeyruwan-3
HI Ceki,

It worked. Thank you very much.

Saminda

On 10/24/06, Ceki Gulcu <[hidden email]> wrote:


Reading your message mentioning the conversion pattern "%5p [%d]...", it
looks like you wish to use log4j with Jetty. As far as I know, this can be
accomplished by adding slf4j-log4j12.jar into $JETTY_HOME/lib.

I hope this helps,


Saminda Abeyruwan-3 wrote:

>
> Hi All,
>
> Jetty 6.0.1 uses its own logging mechanism on top of org.slf4j.
>
> My application uses commons logging and it has the following pattern.
> %5p [%d] %x %m%n  --> Ex : INFO [2006-10-24 12:08:29,667]  Shutdown
> complete.
> Above, I use memory appender and file appender.
>
> Apparently I've set the System.getProperty("org.mortbay.log.class","
> org.mortbay.log.Slf4jLog") property, and its output as follows,
> 70767 [main] INFO org.mortbay.log - jetty-6.0.1 --> and it's print in
> Standard output.
>
> How should i be able to direct "org.mortbay.log" to to file system and is
> it
> possible to set a pattern as %5p [%d] %x %m%n in this.

>
> Please aid me on this.
>
> Thank you
>
> Saminda
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Jetty-support mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>
>

--
View this message in context: http://www.nabble.com/-Jetty-support---jetty-support--Log-level-setting-tf2499661.html#a6974087
Sent from the Jetty Support mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support