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...
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...
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 ...
Towrey asked 4/12, 2013 at 2:37
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...
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...
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...
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...
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...
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...
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.. ...
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...
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?...
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...
6
Solved
How can I limit the size of Apache's access_log, and limit the number of archived logs it keeps?
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...
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...
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.