question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to change the log level (reducing the amount of debug logs)?

See original GitHub issue

What version of UAA are you running?

4.11.0

How are you deploying the UAA?

Official Maven JAR from Maven Central

What did you do?

UAA is producing a lot of logs. We want to define different log levels for different environments, but unable to do it or find documentation about it.

We are packaging it in a Docker container and we tried things like below but without success.

# Set logging level
ENV JAVA_OPTS="${JAVA_OPTS} -Dlog4j2.logLevel=INFO"
ENV CATALINA_OPTS="${CATALINA_OPTS} -Dlog4j2.logLevel=INFO"
ENV LOG4J_LEVEL INFO

RUN sed -i 's/level = FINE/level = INFO/g' /usr/local/tomcat/conf/logging.properties

Is there a way to change the level thorough uaa.yml configuration, or something else? Thanks for the help!

What did you expect to see? What goal are you trying to achieve with the UAA?

Reducing amount of logs

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vtintilliercommented, May 26, 2018

You may want to exclude commons-logging from your classpath (e.g. via Maven exclusions) and add the jcl-over-slf4j bridge instead: https://www.slf4j.org/legacy.html#jcl-over-slf4j

0reactions
DennisDenutocommented, Jul 22, 2018

fyi this has been fixed and will be in the next release of uaa

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Logging Levels - Tableau Help
Increasing the log level to debug or trace increases the amount of information being logged and can have a significant impact to performance....
Read more >
5 Ways to Change Log Levels at Runtime - DZone DevOps
Merely select the logger and change the log level in just click of a button. As highlighted in the figure it will change...
Read more >
Set Up Debug Logging - Salesforce Help
To configure trace flags and debug levels from the Developer Console, click Debug | Change Log Levels. Then complete these actions. To create...
Read more >
Logging Levels: What They Are & How to Choose Them
The log levels can help to reduce the information noise and alert fatigue ... The DEBUG log level should be used for information...
Read more >
How to change software logging level and how to get logs
Find the logLevel variable. Double click it and set the desired value (e.g., DEBUG). Click OK to save. Start the client to apply...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found