41,724 questions
3
votes
2
answers
83
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 ...
0
votes
0
answers
23
views
How to configure Fluent Bit's azure_logs_ingestion output to send logs to Azure Log Analytics' Basic tables?
I am deploying FluentBit on an Azure Kubernetes Service cluster, aiming to collect logs per namespace. The deployment is via Terragrunt, Terraform and HELM. Currently I am able to deliver with OUTPUT &...
1
vote
0
answers
52
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
71
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
24
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
80
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
78
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
52
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
24
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
21
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
46
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
106
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
109
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
80
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 ...
2
votes
1
answer
56
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
58
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
54
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
101
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
139
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
105
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
92
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
0
answers
50
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
112
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
52
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
63
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
76
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
0
answers
42
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
122
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
125
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
78
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
43
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
58
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
62
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
194
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
126
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
78
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 ...
5
votes
1
answer
102
views
Code signing external logging libraries (Nlog, Serilog) [closed]
The logging library .dlls, like Serilog.dll or Nlog.dll are not digitally signed by any code signing certificate from CA. I have been trying to find an info if in a case of commercial application, ...
0
votes
0
answers
78
views
How to get Information log messages to appear in Azure Application Insights from Azure Function?
I have an Azure Function (timer triggered) that doesn't seem to be writing information log messages into Application Insights. When I use LogError/Warning/Critical it works, but LogInformation does ...
2
votes
1
answer
146
views
Why do I get lots of terminal messages about files 'first seen with mtime' when starting django runserver?
When I start
python manage.py runserver
I get many messages similar to the following:
File C:\Users\PC\OneDrive\Documents\DoseSaaS\DoseV3MasterSaaS\templates\admin\dose\tenant\change_list.html
...
-1
votes
1
answer
67
views
Logging in request-response cycle and outside it
Imagine there is a code like that:
app.py
import logging
from contextvars import ContextVar, Token
from typing import Any
from uuid import uuid4
from fastapi.requests import Request
from starlette....
1
vote
1
answer
238
views
Sending logs from Airflow to S3/Minio
I am in the process of setting up Airflow on my Kubernetes cluster using the official Helm chart. I want to push my task instance logs to S3 (well, Minio actually) to a bucket called airflow-logs. To ...
4
votes
0
answers
236
views
How to configure Grafana Alloy to set Loki tenant dynamically from log labels?
I’m running a multi-tenant Loki setup and sending logs through Grafana Alloy.
I need Alloy to set the X-Scope-OrgID header dynamically so that each log stream is stored under the correct tenant. ...
0
votes
1
answer
52
views
How to log to separate ALL and INFO KTOR level files?
I basically would like to have one file using
install(Logging) {
level = LogLevel.ALL
}
And another using
install(Logging) {
level = LogLevel.INFO
}
(everything else stays equal)
My attempts:...
0
votes
1
answer
93
views
Change module name displayed by Rust log macros to be from calling code for auxiliary functions
My goal
I'm trying to make my actix-web code more readable and came up with the idea that I want to extend Result with methods that transform errors into actix specific ones with status code etc. (so ...
1
vote
1
answer
69
views
Unable to filter in GCP Logs Explorer by Apps Script ID?
Does GCP Console Logs Explorer support any kind of Apps Script ID filtering?
I am able to get all the logs of Apps Script by having this filter:
resource.type="app_script_function"
When I ...
0
votes
0
answers
759
views
How to save full Codex CLI `exec` session output as JSON?
I’m running OpenAI’s Codex CLI locally and using it in non-interactive mode, e.g.:
codex exec --full-auto "update CHANGELOG for next release"
I know Codex stores per-session logs as JSONL ...
0
votes
0
answers
108
views
Send email only for a specific exception (ConfigException)
I want Log4j2 to send an email only when a ConfigException is logged. All other exceptions should be ignored by the email appender.
Here is a minimal example:
log4j2.xml
<Configuration>
<...
0
votes
0
answers
129
views
Python logging MemoryHandler leaks memory?
In a main.py file I have following code:
import time
from v1 import log, ServiceLogger
from logging.handlers import MemoryHandler
class Service:
h = MemoryHandler(1000)
id = None
log = ...
0
votes
0
answers
110
views
Why does kubectl logs --follow show duplicate output when used in a loop to watch Kubernetes Job logs?
I'm running a Kubernetes Job from a Jenkins pipeline and want to stream its logs until completion.
I currently use this pattern in a Bash script:
job_status_cmd_complete="kubectl get job ${...
0
votes
0
answers
45
views
How to Customize Apache NiFi 2.4.0 API Logging to Include Custom Attributes?
I'm using Apache NiFi 2.4.0 and want to extend the default HTTP request logging (nifi-request.log) to include a custom attribute called logType with values like DATA_ACCESS, DATA_EXPORT, or ...