How to redirect jetty warnings to another log file?
Environment
all
Resolution
Create a new appender to just handle the jetty warn and error logs and this appender can have limited number of files and sizes. Open logback.xml from the appnode folder and add this new appender:
<logger name="org.eclipse.jetty" additivity="false"> ?<!--additivity makes sure its using only this appender and not other parent appenders-->? <level value="WARN" /> <!-- Will include warn and error logs --> <appender-ref ref="NEW-APPENDER-FOR-JETTY"/> </logger>
You will see two log files during execution of the BW applications - one for appnode and one for jetty warning. A sample logback.xml is attached for your reference.
Issue/Introduction
Redirecting jetty warnings to another log file
Attachments
Redirecting jetty warnings to another log fileget_app