41,728 questions
3
votes
1
answer
66
views
How to reduce logging level in mongodb/mongodb-atlas-local
Problem:
I'm using the mongodb/mongodb-atlas-local Docker image in our CI/CD pipeline for running tests. While the verbose logging is acceptable for local development, it becomes problematic in CI/CD ...
Advice
0
votes
3
replies
63
views
Symfony monolog add additional info to all logs
I need to add trackability information for all logs.
E.g. logged in user and route parameters (entity ID)
Right now I have this code:
use Monolog\Processor\ProcessorInterface;
class RequestProcessor ...
249
votes
7
answers
82k
views
disable maven download progress indication
In our company in the CI machines maven local repository is purged before every build. As result my build logs always have a bunch of noise like this
Downloading: http://.../artifactory/repo/com/...
19
votes
9
answers
11k
views
get list of named loglevels
In my application, I'm using python.logging for logging.
Now I want to control the loglevel interactively, so i created a combobox hat lets the user select "ERROR", "WARN", "...
0
votes
0
answers
18
views
Promtail Configuration replace expressions in the pipeline stages are not working
My Promtail configuration where the replace expressions in the pipeline stages are not working as expected.
I’m trying to replace certain keywords in logs from the testing namespace:
elevenlabs to ...
225
votes
7
answers
597k
views
What is the command to truncate a SQL Server log file?
I need to empty an LDF file before sending to a colleague. How do I force SQL Server to truncate the log?
319
votes
28
answers
310k
views
live output from subprocess command
I'm using a python script as a driver for a hydrodynamics code. When it comes time to run the simulation, I use subprocess.Popen to run the code, collect the output from stdout and stderr into a ...
0
votes
1
answer
36
views
RegEx with two separator and field extraction
I'm trying to isolate the second field, comma-separated, in an already matched substring. My source string is something like this:
Info: 10.10.10.10 "TryingToIsolate" - [14/Mar/2016:15:44:00 ...
2
votes
1
answer
14k
views
How to configure logging provider with dependency injection for .NET library
I have a typical scenario where I'm developing a .NET Core library and want the calling application to be able to optionally configure the logging options.
Ideally I'd like to use dependency injection ...
1
vote
1
answer
47
views
How to use identity attribute of io.quarkus.scheduler.Scheduled in log messages
I have a Java Quarkus application which is using JBoss for logging.
I am using a scheduled job via io.quarkus.scheduler.Scheduled like so:
private static final Logger LOGGER = Logger.getLogger(...
0
votes
1
answer
12k
views
failed to flush the buffer in fluentd looging
I am getting these errors during ES logging using fluentd.
I'm using fluentd logging on k8s for application logging, we are handling 100M (around 400 tps) and getting this issue.
I'm using M6g.2xlarge(...
16
votes
1
answer
9k
views
How to calculate duration between logs in Datadog?
Splunk has transaction command which can produce duration between logs grouped by id:
2020-01-01 12:12 event=START id=1
2020-01-01 12:13 event=STOP id=1
as it is described on
Query for calculating ...
0
votes
1
answer
98
views
Concurrent access logger for C++ [closed]
I am currently working on the modernization of a quite large application analyzing large amount of text data. The application is made of executables, launching other executables and so forth. Some of ...
279
votes
30
answers
401k
views
Spring RestTemplate - how to enable full debugging/logging of requests/responses?
I have been using the Spring RestTemplate for a while and I consistently hit a wall when I'am trying to debug its requests and responses. I'm basically looking to see the same things as I see when I ...
1
vote
1
answer
165
views
In golang slog, how can I add attributes to every log where the value is dynamically calculated?
In principle I want to use slog to produce JSON that contains some specific JSON fields (severity,message, and timestamp). I know I can use ReplaceAttr in HandlerOptions to modify the existing log ...
23
votes
7
answers
19k
views
How do I get rid of the annoying terminal warning when using Gemini API?
I followed all the docs for the Gemini API, however, I cannot find anything that solves this issue.
https://ai.google.dev/gemini-api/docs/quickstart?lang=python
WARNING: All log messages before absl::...
55
votes
5
answers
103k
views
Standard Commons Logging discovery in action with spring-jcl
I have a springBoot all with these dependencies:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-...
0
votes
2
answers
8k
views
How to test connection to Amazon
My application is supposed to create new folder at Amazon S3 bucket and to put there some logs.
The problem is : it just does not happen.
S3 bucket exists (I created it before), but no new folder is ...
0
votes
0
answers
43
views
How to set up multi-thread logging to different loggers using QueueListener and QueueHandler
I have a Python application that runs multiple tasks in parallel using ThreadPoolExecutor. I want all threads to log safely without race conditions. I also need two loggers:
Console logger (prints ...
1
vote
2
answers
9k
views
Logstash udp input not working
I am quite new to logstash but I've been spending quite some time in trying to get this right with no success. I am sending my logs from multiple applications on different server via udp to be logged.
...
Advice
0
votes
3
replies
126
views
Best practice method to dynamically log as program runs C#
I am developing an application in C# and my current logging creates a StreamWriter and a FileStream at the beginning of the program like so:
//Activate Logging
try
{
streamer = new FileStream(&...
583
votes
49
answers
449k
views
How can I color Python logging output?
Some time ago, I saw a Mono application with colored output, presumably because of its log system (because all the messages were standardized).
Now, Python has the logging module, which lets you ...
8
votes
2
answers
6k
views
Logback does not recreate log file after file has been deleted
I have a logger application that runs on a Tomcat server. I am using logback on spring boot framework. Below is my logback.xml file
<configuration debug="true">
<appender name=&...
234
votes
16
answers
217k
views
Python Logging - Disable logging from imported modules
I'm using the Python logging module, and would like to disable log messages printed by the third party modules that I import. For example, I'm using something like the following:
logger = logging....
210
votes
9
answers
116k
views
In python, why use logging instead of print? [closed]
For simple debugging in a complex project is there a reason to use the python logger instead of print? What about other use-cases? Is there an accepted best use-case for each (especially when you're ...