logging Questions

3

Solved

We are using NLog to send email messages whenever a 'serious' error occurs. It might be happening very often in some cases generating too many messages. Is there a way to make NLog limit the numbe...
Insulator asked 5/3, 2013 at 18:5

3

I'm new in nodejs, I'm using fastify and I want to be able to use the req.logger in all the classes functions of the flow, this because I have a the request-id on req.logger, the first solution tha...
Barbiebarbieri asked 16/6, 2022 at 15:36

4

Solved

after setting the objective function and constraints, i use prob.solve() print prob.solution.get_objective_value() actually, I just want to print the objective value, however, it displays a lot ...

1

Solved

Spring Boot (3.3.4) application fails to start with error java.lang.ClassNotFoundException: ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP ERROR in ch.qos.logback.core.model.processor.ImplicitMo...
Weed asked 24/9 at 11:26

2

Solved

In a new Rails 7.1.2 app, the following lines can be found in config/environments/production.rb: config.logger = ActiveSupport::Logger.new(STDOUT) .tap { |logger| logger.formatter = ::Logger::Form...
Capable asked 15/11, 2023 at 10:1

3

Solved

What I'm trying to accomplish is a C# application that will read logs from the Windows Event Logs and store them somewhere else. This has to be fast, since some of the devices where it will be inst...
Charolettecharon asked 22/11, 2018 at 11:54

3

Solved

I created a logger with kubebuilder, it is based on zap logger: import ( "flag" "github.com/gin-gonic/gin" "net/http" "os" "go.uber.org/zap/zapcore...
Stampede asked 27/10, 2021 at 11:56

3

Solved

I have a little logger function that returns potentially two handlers to log to a RotatingFileHandler and sys.stdout simultaneously. import os, logging, sys from logging.handlers import RotatingFil...
Terce asked 22/9, 2021 at 21:56

1

Solved

The AWS cli command logs is v useful for keeping up with what our instances are doing I use the following to view our application logs while: filtering out the HTTP requests filtering out the Heal...
Locomobile asked 20/5, 2021 at 14:11

4

Solved

Logger in PyTorch-Lightning prints information about the model to be trained (or evaluated) and the progress during the training, However, in my case I would like to hide all messages from the logg...
Revisory asked 16/8, 2021 at 18:52

3

Solved

I know there's a reloadDefaultConfiguration() jmx operation, but without getting an instance of MBean and invoking this operation, is there a Logback api to reload the default configuration (option...
Arda asked 16/2, 2012 at 22:32

4

Solved

I am creating a custom .NET Core ILoggerProvider that requires some dependencies to be passed into its constructor. I believe I am using a fairly common pattern to initialize my logging implementa...
Achaea asked 22/6, 2018 at 15:43

5

Solved

Consider the following code. In the event that an exception occurs, the trace (which will be logged and stored in a database) will include the sensitive password data. How can sensitive data in cas...
Mccay asked 18/6, 2021 at 22:24

3

Solved

I'm trying to log into using MinecraftServer.logInfo(), but I get a nosuchmethod exception. server.logInfo("Example message"); I'm getting the instance of MinecraftServer in the server starting...
Osbourn asked 22/9, 2017 at 15:47

3

I am trying to parse a giant log file using node.js, the file does not seem to get '\n' but when I do set list in vi it shows me '$" at the end of every line, does anyone know what that is. I means...
Plumbaginaceous asked 15/7, 2011 at 7:15

1

I started using winston, express-winston and winston-mongodb to log both request and responses and add them to the mongodb. After a while I was able to generate the logs while also hiding informati...
Pyro asked 11/10, 2018 at 14:26

9

Solved

Is the following way to code good practice? try { //my code here } catch (Exception e) { logger.error("Some error ", e); throw new MyCustomException("Some error ", e); } Moreover, should I.. ...
Carper asked 27/2, 2014 at 15:3

5

I'm doing infrequent development with Apache/PHP on my Windows machine so I've opted to run apache as a console process instead of a service. It would be nice if errors could be logged to the conso...
Forta asked 27/4, 2010 at 23:27

5

I'm using argparse to get the logging level from the command line and then passing it as input for logging.basicConfig. However, the way I'm trying to implement this is not working. Any suggestion?...
Polygynous asked 24/7, 2019 at 23:14

5

I was following this answer in order to add a appender on runtime. Even though that works for the original poster, I get this exception in line Logger logger = (Logger) LoggerFactory.getLogger("abc...
Pollute asked 15/7, 2015 at 14:29

6

Solved

Apache's access_log file rotates out into an archived copy around 1GB every few days. Where are the settings to control this? I'd like to be able to control both the max size and the number of arch...
Morganstein asked 11/7, 2012 at 17:40

11

Solved

I am trying to capture output from an install script (that uses scp) and log it. However, I am not getting everything that scp is printing out, namely, the progress bar. screen output: Copying...
Soutine asked 14/10, 2008 at 19:8

3

Solved

I just started getting crash reports from Testflights for a pre-release app that I'm working on, but for whatever reason Xcode isn't properly symbolicating the logs. The build is available (was ...
Familiarize asked 17/2, 2017 at 23:39

2

Solved

Is there a way to specify the output cell where a function should print its output? In my specific case, I have some threads running, each with a logger. The logger output is printed on any running...
Simonasimonds asked 2/7 at 9:5

3

Solved

I'm currently trying to create a Logger so I can inject it in Unit Tests. I'm following https://mcmap.net/q/109170/-how-to-unit-test-with-ilogger-in-asp-net-core, and it used to work! I then moved ...
Heartburn asked 22/1, 2019 at 21:0

© 2022 - 2024 — McMap. All rights reserved.