41,718 questions
-1
votes
0
answers
42
views
Suppressing logs in Azure
I'm looking for help to suppress very annoying logging - something I am not getting about configuration.
In ACA Log stream I keep seeing these log entries:
2025-12-17T15:54:39.257462600Z 2025-12-17 15:...
Advice
0
votes
1
replies
24
views
In FusionCache how to change logging level depending on for how long Fail Safe is activated?
I got an requirement to configure logging in Fusion Cache (only L1), so that when fail safe is enabled and upon some factory issue we start getting stale values this fact is logged as warn. As this ...
2
votes
4
answers
209
views
Logging long running API or other call
I'd like to be able to make a call (e.g., to an API) from within an Azure function, and make a log entry if it is taking longer than n milliseconds, but not interrupt or end the call. Note this is not ...
1
vote
1
answer
104
views
PHP dependency injection and PSR LoggerInterface [closed]
I am missing some kind of best practice for implementation of PHP dependency injection and the PSR LoggerInterface.
Currently (without dependency injection) I have created my own LoggerFactory with ...
1
vote
1
answer
71
views
Configure module-level logger as child of main program logger
Python loggers can be organized in a namespace hierarchy (e.g. foo.bar.baz). If a python module uses the native logging module, can I configure logging in my main program such that all logging ...
0
votes
0
answers
55
views
Specific GCP Vertex AI IAM Permissions needed for enabling request-response-logging
I am following the instructions provided in Google's Log requests and responses documentation for enabling these logs.
We previously had Vertex AI Admin permissions set and enabling/disabling logging ...
1
vote
1
answer
87
views
How to parse an escaped JSON string into a JSON object and use it as an object in a specified field in Fluent Bit?
The logs received by fluent-bit(forward input)
{
"date": 1765435213,
"log": "{\"time\": \"2025-12-11T06:40:13+00:00\",\"tcpConnectionId\": \&...
1
vote
1
answer
118
views
How to reduce the logging of OpenTelemetry with ASP.NET Core and Azure web service
I have an ASP.NET Core web application running as an Azure App Service.
Recently I have noticed our costs for Application Insights has rocketed up. I think this might be due to upgrading to a newer ...
Best practices
0
votes
2
replies
46
views
How can I associate route policies with route templates?
If I define a LoggingRoutePolicy extending RoutePolicySupport , how can I associate it with routes that I have instantiated from a template?
public class LoggingRoutePolicy extends RoutePolicySupport {...
1
vote
0
answers
68
views
How do I get DuckDB CLI to successfully log errors?
I'm using the DuckDB CLI, version 1.4.2 on macOS.
The plan is to use duckdb as a part of a CLI pipeline, not from inside of a Python script, etc.
I've already got the tooling to build out the script ...
3
votes
1
answer
382
views
CA1873 Evaluation of this argument may be expensive and unnecessary if logging is disabled
I'm in the process of upgrading to .NET 10 and I ran into to this compiler suggestion:
CA1873 Evaluation of this argument may be expensive and unnecessary if logging is disabled
It references to ...
0
votes
1
answer
78
views
Write Azure Container App logs to Azure Monitor
I am developing a console application which will run as an Azure Container App.
How do I write application logs such that they can be reviewed and monitored using Azure Monitor?
I have searched for ...
Best practices
0
votes
1
replies
93
views
java stream api: logging inside a stream
Disclaimer: The question below was met with quite a bit of critisicm. The only reason I did not delete this question is becasue stackoverflow doesnt let me after somebody reacted on it. Also the code ...
Best practices
0
votes
1
replies
49
views
Logger Configuration for Python Projects
I am wondering how I am supposed to setup a logger for python projects.
It makes sense that I can setup a logger for the main file in a project Example:
# main.py
logger = logging.getLogger('...
1
vote
0
answers
123
views
logging file is always empty
Here is a snippet of how logging is done in my test script:
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s %(message)s",
datefmt="%Y%m%d %H:%M:%S",
...
3
votes
2
answers
101
views
How do these 2 string buffers interact? Why does the internal logger buffer append to the buffer i dynamically allocate in main
So, for context, I have started writing a small HTTP-Server for learning purposes.
Currently, I have 2 modules: server and logger. The server module uses the logger I wrote internally for logging ...
1
vote
0
answers
67
views
How to log Headers or Cookies added to outgoing http-request by SocketsHttpHandler
I have a typed HttpClient, added to DI like this:
builder.Services
.AddHttpClient<IExternalApiClient, ExternalApiClient>()
.ConfigurePrimaryHttpMessageHandler(() => ...
0
votes
2
answers
109
views
Serilog Date Format using appsettings.json
I am having an issue formatting the date in the filename using the appsettings.json file for a C# worker service.
My current config looks like this:
Serilog": {
"WriteTo": [
...
0
votes
0
answers
29
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 ...
2
votes
1
answer
100
views
How to reduce logging level in mongodb/mongodb-atlas-local [closed]
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
95
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 ...
1
vote
1
answer
60
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
0
answers
28
views
How to set alerts on time correlation between logs on datadog?
For example, we have multiple logs that share the same structure:
Order Created { ..."trace": { "order_id":123456, ... }}
Order Paid { ..."trace": { "order_id":...
1
vote
0
answers
24
views
How to capture IAM user identity in Aurora MySQL audit logs when connecting through AWS TEAM elevated access?
I’m using TEAM elevated access for AWS in my organization to temporarily access an Aurora MySQL cluster.
TEAM provides database access through a tunneled MySQL session using a generic database ...
1
vote
1
answer
56
views
.NET Serilog ReadFrom Configuration doesn't work
Working version:
private static void SetLogging(WebApplicationBuilder builder)
{
Log.Logger = new LoggerConfiguration()
.Enrich.FromLogContext()
.MinimumLevel.Override("...
0
votes
1
answer
107
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 ...
0
votes
2
answers
119
views
Write logs to database in quarkus application
How can I write my log messages to database in my quarkus application?
I tried to create a ExtHandler like this:
package org.myorg;
import io.agroal.api.AgroalDataSource;
import jakarta.enterprise....
-1
votes
1
answer
88
views
Summing log and getting a total [closed]
I’m new to programming. I have a simple push up counter that creates a log to record push ups completed. I cannot figure out a way to modify the program in order to add a fourth option to sum the log ...
1
vote
1
answer
62
views
How to workaround slf4j reading disk on main thread in Android?
I do have the following line in my Android app:
private Logger logger = LoggerFactory.getLogger(getClass().getSimpleName());
When testing for threads access in strict mode i found the following issue ...
0
votes
1
answer
69
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 ...
0
votes
0
answers
68
views
Why does Fluent Bit re-read a rotated log file even when the inode remains the same?
I'm using Fluent Bit v4.1.1 with the tail input plugin to collect application logs written by Logback.
Log rotation works as follows:
test.log → renamed to test.2025-11-08.0.log
A new test.log is ...
0
votes
1
answer
108
views
Macro-free, MSVC-compatible std::format with check for extra argument
I use std::format in my logging, and it largely works great. However, std::format ignores extra arguments which I do not like. E.g., std::format("x = {}", x, y) compiles, so I want a ...
Advice
0
votes
3
replies
141
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(&...
3
votes
0
answers
140
views
MLflow doesn’t log or show model artifacts after training run
I’m working on a machine learning project using MLflow for experiment tracking (on macOS, Python 3.12, scikit-learn, and DagsHub as the tracking server). The experiment runs successfully — I see the ...
0
votes
0
answers
98
views
Azure Functions (FastAPI - AsgiFunctionApp): Logs appear in Application Insights but not in Invocations tab — Category issue?
Problem Summary
I'm using AsgiFunctionApp to wrap FastAPI in Azure Functions, but my application logs are not appearing in the Azure Portal's Invocations tab. The logs do appear in Application ...
0
votes
1
answer
123
views
How to force drain3 to keep log event defining parameter as a static?
I am trying to parse log lines for log anomaly detection, but two log lines are too similar for the parser to keep them apart:
[Something] VM Started
[Something] VM Paused
it parses it to VM <*>...
3
votes
0
answers
123
views
How does one log the operations done on a GPU during the execution of Python code?
I have encountered a particular problem while executing a function from the transformers library of huggingface on an Intel GPU wheel of torch. Since I am doing something I normally shouldn't be ...
1
vote
0
answers
61
views
Serilog not logging after first request in ASP.NET Core Web API running as Windows service
I've been unable to figure this one out and am wondering if anyone has any ideas. This is an ASP.NET Core Web API running as a Windows service.
It will log to a file at the absolute path I specify for ...
0
votes
1
answer
69
views
Submitted an API request, poll for job status updates then observed an issue where the job status never updates from "pending"
I'm working with an API that uses OAuth-based authentication, accepts dynamic JSON payloads, and processes requests asynchronously. After submitting a request, I poll for job status updates. However, ...
0
votes
1
answer
82
views
Will file logging race conditions in multi-process Flask app crash the Python script?
I have a Flask application running on Gunicorn with 2 workers and 2 threads each (4 concurrent execution contexts). My custom logging function writes to a file without any process-level locking:
def ...
0
votes
1
answer
69
views
How to log information indicating that the camel JpaComponent started
I am using a camel route defined in xml. The route starts from this step:
<camel:route id="jpaRoute" routePolicyRef="startPolicy">
<camel:from uri="jpa://?...
0
votes
0
answers
126
views
structlog enforce Wrapped logger type with mypy
I wanted to override the structlog logger for the whole application, by doing this:
import enum
from collections.abc import Iterable
import structlog
from structlog.typing import Processor
from ...
0
votes
2
answers
151
views
Application still prints Logback logs instead of Log4j2 after migration
I migrated my Spring Boot application from Logback to Log4j2, but the application is still printing logs using Logback.
What I did so far:
Added Log4j2 dependencies:
org.springframework.boot
...
0
votes
0
answers
81
views
Custom exception is logged twice by Laravel
I am developing a Laravel 12 API app with Sanctum authentication (SPA). I am facing a behavior in which Laravel is logging the custom exception twice.
The custom exception declaration is as follows:
...
1
vote
0
answers
44
views
Lnav format can't find the warning lines
Hello I have a log like this:
Aug 18, 2025 9:33:43 PM 161ms ++++++++ Important process trimtables terminated with exit value 143.
Aug 18, 2025 9:33:43 PM 161ms ++++++++ Important process SmsGateway1 ...
0
votes
0
answers
68
views
Can fluentbit write or pub to redis on output?
I'd like to ingest server access logs via Fluentbit and then do some modification using the filters and output the results to Redis. All on the same server.
Is there a Redis output plugin or would ...
0
votes
0
answers
71
views
Pino transport: apply ECS format only to Elasticsearch target
I have this Pino transport with two targets:
const transport = pino.transport({
targets: [
{ target: 'pino-elasticsearch', options: { /* ... */ } },
{ target: 'pino-pretty', options: { /* ......
1
vote
1
answer
237
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 ...
2
votes
1
answer
144
views
DD trace logs not structured in spring boot on startup
I am working on configuring a spring boot application to output structured logs.
Application Files
# application. yaml
spring:
application:
name: dd-log-issue
logging:
structured:
format:
...
1
vote
0
answers
93
views
How to customize timestamp in pattern formatter of jboss/wildfly logging in microseconds
As per official docs: WILDFLY logging, default is milliseconds. How can I do it for microseconds basically using any elytron or writing a custom script is the only option ?
Tried some elytron command ...