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: [email protected]<mailto:[email protected]>

From: [email protected] [mailto:[email protected]] 
On Behalf Of Jan Bartel
Sent: Wednesday, April 26, 2017 2:48 PM
To: JETTY user mailing list <[email protected]>
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<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.eclipse.org_jetty_documentation_9.4.x_configuring-2Dlogging-2Dmodules.html&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=HGiRpM6mzbJzIl6pIIWXv48fAXGa5R6byPX73ygX5LM&m=MHpXpCTpHlHciOJHjM2ZXA1JGouc7YWUafCHDWMHGSw&s=sPTrGR6JxD46Nk_owDbABRpc6ZpLtdXP3yHO32vv2Yc&e=>
Jan

On 26 April 2017 at 13:13, 
<[email protected]<mailto:[email protected]>> 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: +91 9910070743<tel:+91%2099100%2070743>
E Mail: [email protected]<mailto:[email protected]>


________________________________

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<http://www.accenture.com>

_______________________________________________
jetty-users mailing list
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users<https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.eclipse.org_mailman_listinfo_jetty-2Dusers&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=HGiRpM6mzbJzIl6pIIWXv48fAXGa5R6byPX73ygX5LM&m=MHpXpCTpHlHciOJHjM2ZXA1JGouc7YWUafCHDWMHGSw&s=tWa92LxEwIFeFKlXUBPun5T8iCB16lR6265B6tS1PAY&e=>



--
Jan Bartel <[email protected]<mailto:[email protected]>>
www.webtide.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.webtide.com&d=DwMFaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=HGiRpM6mzbJzIl6pIIWXv48fAXGa5R6byPX73ygX5LM&m=MHpXpCTpHlHciOJHjM2ZXA1JGouc7YWUafCHDWMHGSw&s=x4GrQxdJDeExhEcTmvWQah8UQ0wj73phM0-lw6LmMYk&e=>
Expert assistance from the creators of Jetty and CometD

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

Reply via email to