LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Change Jetty Log Level

    Employee
    Posted 10-26-2016 12:43

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: gmullin

    Just posting this as it might be useful for other users.

    Jetty log level can be changed in the log4j.properties file which in my case was in: $BRAIN_HOME/jetty/work/jetty-0.0.0.0-8081-root.war-_-any-/webapp/WEB-INF/classes. This will depend on if you have the work directory or not.

    There's a lot of categories for logging, I found most of the log was from audit logging, i.e. log4j.category.AuditLogging, can be set to OFF, WARN, INFO, DEBUG. Same goes for the other properties.

    A restart of Jetty is required.


  • 2.  RE: Change Jetty Log Level

    Employee
    Posted 10-26-2016 12:58

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: kregan

    FYI you can also do this dynamically by going to the following URL: http://<hostname>:<port>/secure/log4j (e.g. http://localhost:8080/secure/log4j)


  • 3.  RE: Change Jetty Log Level

    Employee
    Posted 10-26-2016 13:01

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: gmullin

    Very nice, I like that a lot!


  • 4.  RE: Change Jetty Log Level

    Employee
    Posted 10-26-2016 13:53

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: kregan

    Forgot to mention and in case not obvious - no restart required when you use that secure/log4j page to modify log levels.