Category "logging"

Should I take ILogger, ILogger<T>, ILoggerFactory or ILoggerProvider for a library?

This may be somewhat related to Pass ILogger or ILoggerFactory to constructors in AspNet Core?, however this is specifically about Library Design, not about how

Spring Boot Slf4j change log timestamp to use UTC timezone

Spring boot app with default logger settings and using lombok's @Slf4j Prints logs like {"timestamp":"2020-02-26T11:25:57.485-05:00" ..........} Time shown 11:

The presence of : character in filePattern causes Illegal Char error in RollingFileAppender (log4j2) when configuring programatically

In log4j2.xml when defining the RollingFileAppender, it works fine. Programatically its throwing the error. XML file - <RollingFile name="LogToRollingFile"

Filtering AWS CloudWatch raw log events by multiple values / AWS CLI

Given the following query on CloudWatch that extracts logs with messages including "entry 1456" (where 1456 is an ID) how should I extend this to take multiple

Terraform enable VM Insights

Did someone managed to enable via terraforms Insights for a VM? i'm able to create a VM, enable logging, but not enable insights.. i've seen this question: but

Output AWS cli sync command from bat file to log file with timestamp

I would like to run aws s3 sync on a scheduled bat file, logging the output to a file with timestamps. Here is the bat file: cls set ARG1=%1 if %ARG1%==test co

java.lang.ClassNotFoundException: org.apache.logging.log4j.Logger after updating log4j 1.2.17 to 2.13.0

I am running Tomcat v9.0 server on a Java Eclipse project. Each time I run my application on the server I get this Problem Occured message: Server Tomcat v

Argparse: is it possible to combine help texts from multiple parsers?

I'm writing a module with custom logging utilities to be imported in other scripts. It's based on the standard-library logging module. One of these utilities lo

Ubuntu where to see console.logs

So I am putting my app on a server and I want to see some console logs generated from my nodejs app. Before putting it on the server I saw the output of my cons

Can a Serilog.ILogger be converted to a Microsoft.Extensions.Logging.ILogger?

I have code that logs to Microsoft.Extensions.Logging.ILogger (and extension methods, mostly). I have configured Serilog to actually do the logging. I can't fin

How Serilog posts to CloudWatch without any configuration setup?

I am migrating an app done in net core from Azure to AWS. Backend is an Asp.NetCore WebApi which uses Serilog for logging. I simply put it behind a subclass of

Flutter: FLog and Logger

I am new in flutter and I am building an app in flutter and looking for logging options. I know there are several logging packages available like logger and flo

No handlers could be found for logger

I am newbie to python. I was trying logging in python and I came across No handlers could be found for logger error while trying to print some warning through l

How to log - the 12 factor application way

I want to know the best practice behind logging my node application. I was reading the 12 factor app guidelines at https://12factor.net/logs and it states that

java.util.logger undefined for the type System.Logger

I am new to java and trying to use the logger in java.util. I declare the logger like this snippet: Logger logger = Logger.getLogger(MyClass.class.getName());

Using Python Logging module to save logs to S3, how to capture all levels of logs for all modules?

It's my first time using the logging module in Python(3.7). My code uses imported modules that also have their own log statements. When I first added log statem

Reload Serilog JSON Configuration on changes in .NET Core 2.1

I'm currently working on a ASP.NET Core 2.1 application and I use Serilog for logging. I want to reload the application settings file for my Serilog implementat

How to use nestjs Logging service

I tried to use the internal Logger of nestjs (described on https://docs.nestjs.com/techniques/logger -> but with no description of how to use it) But I had

Fast API Python special log parameter for each request

Maybe someone here have a good idea on how to solve my issue. I have a REST API project driven by FastAPI. Every incomming request comes with a hash in the head

Qwt: log scale and ticks every 10th of a decade

I made a QwtPlot with an x log scale and a y linear scale. The x axis range is fixed from 10 to 1000, i.e. 3 decades. A added a grid with major and minor divisi