Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
272 views

I’m using Spring Boot 3.4 with structured logging (via JsonWriterStructuredLogFormatter), and I want to mask sensitive data such as passwords, API keys, and tokens from the message field in the logs. ...
Mehrdad Bozorgmehr's user avatar
0 votes
1 answer
363 views

I am using the Loki /otlp endpoint for ingesting logs which automatically handles a few semantic labels for you such as service.name, service.instance.id and deployment.environment to name a few and ...
IbrarMumtaz's user avatar
  • 4,452
0 votes
1 answer
74 views

We're using structured logging on all our services, so all logs are in json format. When a BackgroundService crashes, it prints a cleartext stacktrace onto STDOUT. I'd like to be able to catch ...
Christopher Thonfeld-Guckes's user avatar
1 vote
2 answers
2k views

Using ILogger<T>, is there a way to add log properties in addition to the ones covered by the message template? For example: _logger.LogInformation("Order {OrderNumber} was registered."...
Sigurd Garshol's user avatar
0 votes
2 answers
79 views

I am using the logging python library in order to log some structured JSON. My idea was to do it manually following the example in the documentation, by giving a config with only the message : logging....
GrinnS's user avatar
  • 143
0 votes
1 answer
171 views

Here is the Golang version of what I want to do in Java: package main import ( "log/slog" "os" ) func main() { logLevel := new(slog.LevelVar) // Info by default ...
armijo's user avatar
  • 57
0 votes
1 answer
112 views

Where can I find the function that formats a log string and its parameters with the new Structured Logging format. I'm looking for the equivalent of "string.Format(..." but for Structured ...
Eric Ouellet's user avatar
0 votes
0 answers
934 views

I am currently working with gcloud monitoring. I searched for a way to write log messages similar to already incoming logs. To mimic the real log entry, I am writing a log from a pod via "echo&...
SimepleServiceDev's user avatar
2 votes
0 answers
334 views

I am trying to use structured logging and log an object. I run into this error when trying to log the object: System.IO.FileNotFoundException: 'Could not find file 'C:\Non-Existent-File'.' This ...
JasonC's user avatar
  • 338
1 vote
0 answers
32 views

How to temporarily disable logging using Zap logger in Go. I need to mute logs for a particular function without removing logger print statements. I need a solution similar to what we do for fmt as ...
Gopi Kumar's user avatar
0 votes
1 answer
1k views

I have an object that I want to pass to logging (default built-in logging to console, no libraries used) as argument like this: logger.LogDebug("Executing MongoDB command: {Command}", ...
Ilya Chernomordik's user avatar
0 votes
0 answers
164 views

I am using NLog with structured logging for the first time. I user Serilog in the past, and with that I could write something like this: Serilog.ILogger logger = CreateSerilogLogger(); logger....
maradev21's user avatar
  • 624
1 vote
0 answers
655 views

I'm using NLog to create semantic logs in a Seq server. I want to log an object that has a ToString() method that produces a short human readable summary of the data content. So I want to render the ...
Tim Long's user avatar
  • 13.8k
6 votes
0 answers
216 views

We send logs from a variety of services running in a Kubernetes cluster to Elasticsearch via Filebeat. Some of these services we develop ourselves, others are third-party. We use dynamic mapping in ...
Matt R's user avatar
  • 10.7k
2 votes
2 answers
2k views

I'd like my program to write to its stderr a log that is simultaneously human and machine readable. Requirements: A log is a stream of messages. I.e. I can't write just one big xml or json document. ...
Andrey Bienkowski's user avatar
0 votes
2 answers
645 views

i am trying to get structured logging working in a Azure Function, but it does not work on my side. I wrote a simple application like this [FunctionName("Dummy")] public IActionResult Run([...
Martin Oehlert's user avatar
2 votes
0 answers
717 views

I have a semi-large project that has been using nlog, and throughout I re-used alot of field names for different datatypes. I started to send my logs (including all log properties/fields) to ...
ZZT's user avatar
  • 71
3 votes
1 answer
1k views

I am using the Database target and trying to figure out a way to send all-event-properties as a parameter in JSON format; I see that parameter includes a property for "format," but when I do ...
codeMonkey's user avatar
  • 4,947
2 votes
0 answers
798 views

This is probably a stupid question, but my scala knowledge is a bit lacking. I'm trying to implement structured logging in scala, and we're using slf4j/logback/logstash. I came across the following ...
Andy's user avatar
  • 3,658
1 vote
1 answer
692 views

I'm trying to figure it out what is a correct behaviour for capturing properties with duplicate hole names according message templates syntax which is implemented in the NLog. Let's look an example. ...
Alexcei Shmakov's user avatar
1 vote
1 answer
2k views

Question Is there a way to write structured logs from Cloud Functions such that the message field is automatically displayed as the primary message in GCP Log Viewer? Using this test, I've found ...
Doug Richardson's user avatar
2 votes
2 answers
1k views

In python 2.7, the app engine sdk was doing the work in the background to nest all logs with the parent request to have a correlation in Google StackDriver. As of the transition to python 3, it is ...
PCS-I's user avatar
  • 433
1 vote
1 answer
8k views

I want to format the timestamp in my structured logs. Currently I defined the logback.xml like: <configuration> <appender name="json" class="ch.qos.logback.core.ConsoleAppender"> <...
xtra's user avatar
  • 2,412
2 votes
2 answers
272 views

I’m writing .NET Core application and would like to use structured logging available in .NET Core Logging Extensions to write logs in more structured way. I want to save my logs in RavenDB and I’m ...
dnf's user avatar
  • 1,819
8 votes
2 answers
7k views

Until today we have used NLog version 4.4.12 (without structured logging). However we were using https://www.nuget.org/packages/NLog.StructuredLogging.Json/ for structured logging. The nice thing ...
toebens's user avatar
  • 4,099