Questions tagged [log-level]

61 questions
13
votes
3 answers

java.util.logging: how to set level by logger package (or prefix)?

My app uses many libraries and I'm using java.util.logging for logging. I'd like to be able to set different logging levels for each library by doing something like: org.datanucleus.*.level = WARNING com.google.apphosting.*.level =…
Igor Gatis
  • 3,870
  • 10
  • 36
  • 57
10
votes
2 answers

What log level to use for method enter/exit?

What log level should one use for method exit/enter? The log4j levels follow the following order. DEBUG INFO WARN ERROR FATAL
Oh Chin Boon
  • 21,393
  • 45
  • 133
  • 208
8
votes
2 answers

Is it possible to change the log level of an AWS Lambda at runtime?

I'm running a lamba on AWS, and using slf4j for logging Part of the project requirements is that the log level can be set at runtime, using an environment variable, but I'm not sure if that's possible I'm using the following code, but changing the…
Joseph McCarthy
  • 771
  • 1
  • 15
  • 27
8
votes
1 answer

IntelliJ: How to set log levels for tests

I have a problem with test console output in IntelliJ 2016. When I run JUnit tests via IntelliJ, the console window is flooded with enormous amounts of log lines, for example DEBUG reactor.ipc .... DEBUG io.netty.buffer.ByteBufUtil .... It's a…
feob
  • 1,672
  • 1
  • 18
  • 30
8
votes
1 answer

Log4j2 wildcard logger names

I am using log4j to do some logging on one of my applications. The Loggers in my config are looking like this.
Zack
  • 11,342
  • 19
  • 69
  • 105
7
votes
1 answer

python logger level inherited from root set to warning by default

In my program I define a logger at the beginning that looks similar to this: def start_logger(): fh = logging.handlers.RotatingFileHandler('logger.log', maxBytes=1000000, …
Nickpick
  • 4,883
  • 9
  • 45
  • 92
5
votes
1 answer

How to fine-tune the level for SonarQube Gradle plugin

I'm using SonarQube plugin (version 2.6.1) for Gradle (version 4.7) and have the problem that a lot of unimportant log output is being written while running the sonar analysis on my CI server. Is there a way to fine-tune the log level for this…
Marko Previsic
  • 1,457
  • 12
  • 24
5
votes
3 answers

How to get the current spdlog level?

I need to turn off the spdlog level before some code then return it to the previous value after. How do I get the current level before turning it off?
Howaida Khoureieh
  • 489
  • 2
  • 11
  • 23
5
votes
0 answers

log4j/logback pass logger level as a parameter

I want to do something which seems really straightforward: just pass a lot of logging commands (maybe all, but particularly WARN and ERROR levels) through a method in a simple utility class. I want to do this in particular so that during testing I…
mike rodent
  • 10,479
  • 10
  • 80
  • 104
4
votes
2 answers

Python logging override dictConfig level

I am using the following dictConfig for a logger. However, I am unable to modify the logging level at runtime. #contents of log_config.json { "version": 1, "disable_existing_loggers": false, "formatters": { "simple": { …
pipeTD
  • 41
  • 2
3
votes
1 answer

Is R logger's debugger level - FINEST equal to Python's DEBUG?

I'm trying to convert an R script to Python by understanding its functionality. They've created a logger in R and set the level for the logger. What I'm confused about it is the word FINEST as log level. I haven't come across any such level before…
Underoos
  • 3,105
  • 3
  • 22
  • 47
3
votes
1 answer

Overriding MinimumLevel doesn't work in Serilog

Trying to set minimum log level for Serilog 2.8.0 (in .NET 4.6.2). Logging is working fine, but not the Override feature. Here is my Program.cs: using System; using LogTest1.Classes; using Microsoft.Extensions.Configuration; using Serilog; using…
Kristian Sik
  • 33
  • 1
  • 4
3
votes
2 answers

java.util.logging.Logger has different Level than it's root Logger

In my application at one point I set the root Logger of java.util.logging and all it's handlers to Level.FINEST like this: Logger.getLogger("").setLevel(Level.FINEST); for (Handler handler : Logger.getLogger("").getHandlers()) { …
Jdv
  • 883
  • 7
  • 28
3
votes
1 answer

How to change log level for MongoDB logs?

Is there any way to change the default log level for MongoDB ? There're too many insertion/update entries in the log file, causing it grow way too big. command used to start mongo: ./bin/mongod --fork --bind_ip 0.0.0.0 --dbpath /data/db/ --logpath…
Jerry Chin
  • 607
  • 6
  • 20
3
votes
1 answer

log4j isolating certain level from a class

I want to ask something on log4j. I have this config file for log4j on activemq. My problem is that I want to log all INFO level messages from every class I have, but I want to log all DEBUG level messages from "TransportConnection" class to a…
Anastasios Andronidis
  • 4,661
  • 4
  • 26
  • 44
1
2 3 4 5