Jetty logs rollover if log file size exceeds certain limit

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

Jetty logs rollover if log file size exceeds certain limit

himanshu.gpt

Hi,

 

We are using Jetty 9.3 and need to rollover the jetty logs based on its size (if size greater than 5MB, rollover log file upto 30 max files) similar to the way we do with log4j.

Can we do it simply by changing the jetty logging configuration or we need some custom implementation to achieve the same.

 

 

 

Thanks and regards,

Himanshu Gupta

Accenture Interactive (AI)

Gurgaon, India 
Mobile: +91 9910070743
E Mail: [hidden email]

 




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Jetty logs rollover if log file size exceeds certain limit

Jan Bartel
You can use logback or log4j or anything else that plugs into slf4j  for the jetty logs and configure a more sophisticated rollover policy.

https://www.eclipse.org/jetty/documentation/9.4.x/configuring-logging-modules.html

Jan

On 26 April 2017 at 13:13, <[hidden email]> wrote:

Hi,

 

We are using Jetty 9.3 and need to rollover the jetty logs based on its size (if size greater than 5MB, rollover log file upto 30 max files) similar to the way we do with log4j.

Can we do it simply by changing the jetty logging configuration or we need some custom implementation to achieve the same.

 

 

 

Thanks and regards,

Himanshu Gupta

Accenture Interactive (AI)

Gurgaon, India 
Mobile: <a href="tel:+91%2099100%2070743" value="+919910070743" target="_blank">+91 9910070743
E Mail: [hidden email]

 




This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <[hidden email]>
www.webtide.com
Expert assistance from the creators of Jetty and CometD


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Jetty logs rollover if log file size exceeds certain limit

himanshu.gpt

Tried adding log4j with jetty using below command but getting this error

 

java -jar ../start.jar --add-to-start=logging-log4j

 

org.eclipse.jetty.start.graph.GraphException: Missing referenced dependency: logging-log4j

        at org.eclipse.jetty.start.graph.Graph.selectNodes(Graph.java:470)

        at org.eclipse.jetty.start.BaseBuilder.build(BaseBuilder.java:152)

        at org.eclipse.jetty.start.Main.start(Main.java:407)

        at org.eclipse.jetty.start.Main.main(Main.java:75)

 

Usage: java -jar start.jar [options] [properties] [configs]

       java -jar start.jar --help  # for more information

 

 

 

Thanks and regards,

Himanshu Gupta

Accenture Interactive (AI)

Gurgaon, India 
Mobile: +91 9910070743
E Mail: [hidden email]

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Jan Bartel
Sent: Wednesday, April 26, 2017 2:48 PM
To: JETTY user mailing list <[hidden email]>
Subject: Re: [jetty-users] Jetty logs rollover if log file size exceeds certain limit

 

You can use logback or log4j or anything else that plugs into slf4j  for the jetty logs and configure a more sophisticated rollover policy.

https://www.eclipse.org/jetty/documentation/9.4.x/configuring-logging-modules.html

Jan

 

On 26 April 2017 at 13:13, <[hidden email]> wrote:

Hi,

 

We are using Jetty 9.3 and need to rollover the jetty logs based on its size (if size greater than 5MB, rollover log file upto 30 max files) similar to the way we do with log4j.

Can we do it simply by changing the jetty logging configuration or we need some custom implementation to achieve the same.

 

 

 

Thanks and regards,

Himanshu Gupta

Accenture Interactive (AI)

Gurgaon, India 
Mobile: <a href="tel:&#43;91%2099100%2070743" target="_blank">+91 9910070743
E Mail: [hidden email]

 

 



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users




--

Jan Bartel <[hidden email]>

www.webtide.com
Expert assistance from the creators of Jetty and CometD

 


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users
Reply | Threaded
Open this post in threaded view
|

Re: Jetty logs rollover if log file size exceeds certain limit

Jan Bartel
Ah, I linked you to the latest 9.4 documentation, but it looks like you are on 9.3. Try https://www.eclipse.org/jetty/documentation/9.3.x/configuring-logging.html#configuring-jetty-logging instead.

Jan

On 26 April 2017 at 20:11, <[hidden email]> wrote:

Tried adding log4j with jetty using below command but getting this error

 

java -jar ../start.jar --add-to-start=logging-log4j

 

org.eclipse.jetty.start.graph.GraphException: Missing referenced dependency: logging-log4j

        at org.eclipse.jetty.start.graph.Graph.selectNodes(Graph.java:470)

        at org.eclipse.jetty.start.BaseBuilder.build(BaseBuilder.java:152)

        at org.eclipse.jetty.start.Main.start(Main.java:407)

        at org.eclipse.jetty.start.Main.main(Main.java:75)

 

Usage: java -jar start.jar [options] [properties] [configs]

       java -jar start.jar --help  # for more information

 

 

 

Thanks and regards,

Himanshu Gupta

Accenture Interactive (AI)

Gurgaon, India 
Mobile: <a href="tel:+91%2099100%2070743" value="+919910070743" target="_blank">+91 9910070743
E Mail: [hidden email]

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of Jan Bartel
Sent: Wednesday, April 26, 2017 2:48 PM
To: JETTY user mailing list <[hidden email]>
Subject: Re: [jetty-users] Jetty logs rollover if log file size exceeds certain limit

 

You can use logback or log4j or anything else that plugs into slf4j  for the jetty logs and configure a more sophisticated rollover policy.

https://www.eclipse.org/jetty/documentation/9.4.x/configuring-logging-modules.html

Jan

 

On 26 April 2017 at 13:13, <[hidden email]> wrote:

Hi,

 

We are using Jetty 9.3 and need to rollover the jetty logs based on its size (if size greater than 5MB, rollover log file upto 30 max files) similar to the way we do with log4j.

Can we do it simply by changing the jetty logging configuration or we need some custom implementation to achieve the same.

 

 

 

Thanks and regards,

Himanshu Gupta

Accenture Interactive (AI)

Gurgaon, India 
Mobile: <a href="tel:+91%2099100%2070743" target="_blank">+91 9910070743
E Mail: [hidden email]

 

 



This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users




--

Jan Bartel <[hidden email]>

www.webtide.com
Expert assistance from the creators of Jetty and CometD

 


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users



--
Jan Bartel <[hidden email]>
www.webtide.com
Expert assistance from the creators of Jetty and CometD


_______________________________________________
jetty-users mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users