Questions tagged [log-level]

79 questions
19
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,930
  • 5
  • 19
  • 31
17
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
  • 4,648
  • 10
  • 43
  • 66
12
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
  • 897
  • 2
  • 19
  • 41
11
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
  • 123
  • 1
  • 1
  • 6
11
votes
2 answers

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
  • 13,454
  • 24
  • 75
  • 113
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
  • 23,028
  • 51
  • 143
  • 215
8
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
  • 6,163
  • 16
  • 65
  • 116
6
votes
2 answers

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
  • 657
  • 1
  • 8
  • 25
6
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
  • 519
  • 2
  • 11
  • 24
5
votes
1 answer

How to increase NLog log level at runtime

My application has too much log.Trace() at the beginning of the program, causing the program to malfunction, so I can't use general NLog configuration to increase the log level. So, I would like to increase the log level at runtime. For that, I've…
Dominique
  • 16,450
  • 15
  • 56
  • 112
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,820
  • 16
  • 30
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
  • 14,126
  • 11
  • 103
  • 157
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
  • 1
  • 2
3
votes
1 answer

Filtering out Azure ServiceBus logs from WebJob Application Insights

I have been trying to filter out information messages that my ServiceBus triggered webjob is sending in the Application Insights. These messages consist of these two logs: ReceiveBatchAsync start. MessageCount = 1 ReceiveBatchAsync done. Received…
3
votes
1 answer

How to display warning and deprecated messages in Laravel

If I write some PHP code with a deprecated notice, it displays on a local environment. Example: index.php
melicerte
  • 363
  • 4
  • 12
1
2 3 4 5 6