41,667 questions
Score of 1
1 answer
123 views
Why are my Python multiprocessing.Pool subprocess logs going to my log file but not the stream (command window)?
Python version 3.13.7 on Windows 11 Enterprise
I am running a FileHandler and StreamHandler using a QueueHandler for my pyton script. The main process logs go to both the stream and file, but the logs ...
Score of 2
1 answer
66 views
Securely storing error messages displayed to the application user in a database
Ultimately, I'd like to reduce the redundancy of identical error messages and even prevent potential DDoS attacks. I've developed the following method in the Spring Boot application. The goal is for ...
Advice
2
votes
11
replies
137
views
stumbled into jq last night
I have not yet understood the programming model.
Some code works well - and easily - other stuff just confuses me.
I have records that look like this
{
"items": [
{
"id"...
Score of 0
1 answer
74 views
Log exceptions automatically in MassTransit 8
I use MassTransit 8.5.8 + Amazon SQS/SNS, the app is running in Windows Docker container.
I've switched earlier from MassTransit v7 and noticed that exceptions are not logging to Sentry. Earlier all ...
Advice
1
vote
5
replies
93
views
SLF4J vs Log4j vs Logback: Architectural difference?
I am learning about logging frameworks in Java and trying to understand how the components fit together.
Could someone briefly explain:
What is the difference between an abstraction layer like SLF4J ...
Advice
0
votes
0
replies
23
views
Find SEQ logs where other SEQ logs have not triggered within a timeframe
I am trying to find where SEQ logs for a shut down service do not have SEQ logs for the automatic restart of that service within 30 minutes to trigger an alert (to indicate that the service did not ...
Best practices
0
votes
2
replies
79
views
Kotlin / Spring Boot - Logging at Constructor Nullpointer Exceptions
we work with sensitive medical data in our apps. and we want to avoid having them in our logs.
the problem is: if there is a nullpointer exception in object creation, kotlin logs the whole constructor ...
Advice
0
votes
0
replies
70
views
Datadog - is it possible to join two separate log messages?
I do have 2 log messages. They share the same @traceId and @userId.
Additionally
1st message got @notification.code:my_code
2nd message got @status
I'd like to create a dashboard with a table like
@...
Tooling
0
votes
3
replies
80
views
Need a logger that does both terminal and file based logging
I am making a product data pipeline in python. But I need a good logger that logs on both terminal as well as file. There are default logging facilities in python, but they are only for files.
Colours ...
Score of 0
1 answer
99 views
Cannot enable TRACE/FINEST logging for Oracle Universal Connection Pool (UCP) in Spring Boot 3
I have spent couple of days trying to turn on Oracle UCP logs in my Spring boot app but haven't succeeded.
Here is code that i used to get some details (root and oracle loggers level, handlers):
@...
Score of 0
1 answer
63 views
Missed rollover during application down
I have the following appender setup in my application that performs hourly rollover and compresses log files:
<appender name="log-file" class="ch.qos.logback.core.rolling....
Score of 3
1 answer
124 views
Multiple workers using the same log file
I have a FastAPI service which is using granian with 6 workers. I noticed that I'm losing information from logs, there are requests being made, however the rotated logs are missing records for these ...
Tooling
0
votes
0
replies
119
views
Spring boot structured logging issue
Current spring implementation of structured logging with ECS format creates object "service" with fields:
name, version, environment, node
I would like to add field "id" to the ...
Score of 3
1 answer
85 views
Handling "level" keyword with structlog wide logging
I want to implement wide logging with Python's structlog. I also want to provide some unit tests for that and I'm really struggling with how to use structlog with underlying stdlib logging. In general ...
Tooling
0
votes
4
replies
108
views
KQL Script to check existence of a file on Azure VM file system
I'm working on some Azure VMs (a mix of Linux and Windows OS) and would like to set up a KQL script that can check for the presence of a named file (e.g. gold_image.dat) in a specific directory on ...