I want to know how can I split the jetty server log when it reach to 10MB file size and backup while running?
I am using jetty 8 web server.
Thanks in advance.
Imesh
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Thanks Jesse for the reply but I did not try the way you mentioned. I resolved the problem in this way. Downloaded the jetty source and got the logging file named
RolloverFileOutputStream.javathen I changed the valuemaxFileLenthin theRollTaskBySize()method.I put this file inside my source code and changed the value in jetty-loggin.xml.
Set the path to pick up the modified RolloverFileOutputStream.java from my project as below in bold.