Questions tagged [error-logging]
The process of recording errors in log file for diagnostic and Q&A purposes.
796
questions
0
votes
0
answers
12
views
Import c# library along with error logging library in MATLAB
I am not able to log error after importing c# library in MATLAB.
I have created a c# class library with log4net error logging library. I was able to successfully load the c# library in MATLAB but ...
0
votes
1
answer
44
views
Oracle Forms - Compile forms on Windows platform - Redirect errors
I'm using frmcmp.exe (12.2.1.4.0) to compile forms on Windows.
I enter the required information thru the displayed form.
Let say I enter a wrong user/password / missing TNS... An error window will be ...
0
votes
0
answers
15
views
PHP error.log file showing so many NUL lines in Mac
I am working on a mac machine running macOS 13 and using PHP 7.3. When the error_log is using, along with that so many NUL showing in the log file in red background. The file size getting enormously ...
-3
votes
2
answers
62
views
Php error log Filled up with PHP Deprecated: Directive 'track_errors' is deprecated
I've recently installed php and mysql in a new windows server IIS and transferred my script there, there's a problem that after enabling error log in php manager, I just get one line error repeatedly ...
0
votes
0
answers
29
views
Catching error exception combined with function call
Currently, I want to get the error log url, and also want to get the error message of the error.
Raise Exception()
Like my above script, I can only get the error url by calling function(logging_url) ...
0
votes
0
answers
29
views
How to log PHP errors [duplicate]
I am developing PHP websites on my own and want to turn off displaying error messages to the browser as sites move into production. I thought about setting up Monolog but am worried that with just me ...
0
votes
0
answers
49
views
python: Handling log output of module during program execution
I'm setting up a logger in my script like shown at the bottom. This works fine for my purposes and logs my __main__ log messages and those of any modules I use to stdout and a log file.
During program ...
0
votes
0
answers
34
views
How to format PHP error_log lines, so it's readable?
I'm working on a site that uses Twig-templates via Timber - and there is this "great" convention, that whenever something is wrong there, the entire Timber::context is written to the error ...
1
vote
1
answer
28
views
ANTLR4 no error messages while converting my grammar
the last few days/weeks I wrote ANTLR4 grammar and used it in my Javascript-React project.
While using the javascript runtime ( see here ), my console (powershell) always gave me an error message when ...
0
votes
1
answer
45
views
How to get error information from logs on a Powershell script to create a scheduled task?
I have a PowerShell script that creates a Scheduled Task. I deploy this script through MEM/Intune and it is currently erroring out. I need to know if there is a way to determine exactly why and/or ...
0
votes
0
answers
45
views
Is there a way to output a PowerShell log through Python?
I'm running a PowerShell script through Python that sends an email if a condition is met.
However, I'm running into a logical error when scheduling this program to run with Windows Scheduler. The ...
0
votes
0
answers
49
views
Spring Batch auto generated error Logging File not having timestamp
There are errors on start-up of spring batch which are getting logged into default error logging file (filename : project_name.err.log)but does not have timestamp to understand when the errors ...
0
votes
0
answers
41
views
PowerShell capture PSScriptAnalyzer logs line by line into array
I am using the PSScriptAnalyzer static code checker. When I run this example commnad Invoke-ScriptAnalyzer -Path .\MySuperLongLongFileName.ps1 -Settings PSGallery the code checker logs are presented ...
0
votes
0
answers
18
views
Monitoring and Logging Azure Apps and other Infrastructure on Azure
I have setup up my applications on Azure app service (Container) that are connected with Azure AD and Azure SQL.
I am looking for some monitoring and logging tool(other than Azure application insights)...
0
votes
0
answers
41
views
A Problem occurred while processing the request (Jenkins) while saving configurations in a job
I'm using Jenkins under Tomcat Server, and whenever I'm trying to save a job's configuration (save or apply), I get this error
1
vote
1
answer
34
views
System Outs and Un handled exceptions from Java App is not having a timestamp when logged
Need help here. We have java apps started from our shell scripts in unix using java command and the output is redirected to a nohup file to ensure we capture any SystemOuts and any unhandled ...
0
votes
0
answers
242
views
Set Laravel LOG file a max SIZE and create a new one when this max size is reached
I would like to know if there is any way to limit the size of a log file in Laravel. I am doing the rotate to create a Log per day, and that these are deleted after a certain time like this:
'custom' =...
2
votes
1
answer
397
views
Using logging basicConfig with multiple handlers
I'm trying to understand the behaviour of the logging module when using basicConfig with multiple handlers.
My aim is to have warning level on syslog messages, and debug level to a log file.
This is ...
2
votes
2
answers
151
views
How to catch native exceptions in Cordova?
I have uploaded my Cordova app on PlayStore and I got the following reply:
During testing we experienced stability issues with your app and were unable to successfully evaluate it for policy ...
0
votes
0
answers
51
views
GCP Structured Logging Python
I'm trying to generate structured logging from Python so that the JsonPayload contains the following:
{ "time": "2021-03-26T14:04:29.6205983Z", "severity": "ERROR&...
0
votes
0
answers
63
views
Python - how do I create a single log file where I have multiple modules?
Folks,
I want to just have a runlog of whether everything has run as per expectation in the Module that's been written and I made use of logging (and dictConfig) for that purpose. I can see the files ...
0
votes
0
answers
55
views
Duplicate Messages are getting printed in error.log file. how we can avoid them?
I was trying to replicate the issue in my application, My app continuously logs a lot of DB connection error messages in error.log file, when DB is having some connection issues and it results in ...
1
vote
0
answers
113
views
Db logger auto delete data after a time interval
Trying to implement a DB logger in my Django project
but I am facing a problem in managing the logs in my DB so how can I automatically delete the old records from DB
settings.py
INSTALLED_APPS = ['...
0
votes
0
answers
71
views
Express/NodeJS: all server errors silent in dev
For some time now, we no longer see any stack traces server-side in dev. Attempts to remedy this situation have included:
const server = express();
server.use((err, req, res, next) => {
...
2
votes
0
answers
48
views
Where should I log in a Service-oriented Architecture in NodeJS?
I have a NodeJS app with a Service-oriented architecture; my controllers interacts with services, and services interacts with the data access layer and external APIs. Does anyone know of any best ...
0
votes
1
answer
357
views
Default general error message in case of any exception in django
I am developing Restful API using Django.
In case of an error instead of raising python default exception or adding try except on every view,
is there a way to add a default error message which will ...
1
vote
3
answers
301
views
How to log outputs and errors to file without knowing where errors will occur
I have a long script which I run on a remote server and I want to log all outputs as well as error messages to a file.
I know how to log all terminal outputs (e.g. print()) to a .txt file:
# in ...
1
vote
1
answer
219
views
Issues when using logger package in r-markdown when initializing log_errors()
I created a function to initialize logging using logger package and to save the logs entries in a temporary file in the tempdir() given by R.
init_logger <- function() {
library(logger)
...
0
votes
0
answers
20
views
Group Django error logging by user instead of errors
Under Django daily jobs, for integrity check, is there a way to log the errors by user instead of all errors? To prevent a single user from spamming the system with errors. Thanks!
0
votes
0
answers
54
views
How to capture all Python code failures where not normally expecting to use try / except
How would one capture ALL Python failures and log them into a file? Not just failures captured in a try: / except: code within the program but ALL failures. So if there was a line in the code that ...
0
votes
1
answer
148
views
How to add the timestamp of the fatal error occurrence to Java fatal error log filename
Background
You can use java -XX:ErrorFile=/path/to/file to specify the path of fatal error log file.
You can use the -XX:OnError option to execute a command when an error causes on a Java VM.
To ...
1
vote
0
answers
106
views
How to test java -XX:ErrorFile option is set properly on Windows
Background
You can use java -XX:ErrorFile=C:\path\to\file to specify the path of fatal error log.
To test that the -XX:ErrorFile option is set properly, you can use the kill -SIGSEGV command in the ...
0
votes
1
answer
132
views
Keep track of specific errors in Google Cloud Error Logs?
I am using GCP with Cloud Run, SQL etc with a Node.js application. I have a specific type of error that appear quite often, related to a Twitter API call. Quite often I get this "Rate limit ...
0
votes
1
answer
89
views
Log Springboot classes (like DefaultMessageListenerContainer) logs to custom file
I am facing one problem to log DefaultMessageListenerContainer.java (which is as Springboot class) error logs in a custom file using Log4j2 configuration.
Below is the configuration setup in Log4j2....
1
vote
1
answer
774
views
Azure function log info not output
I have an azure function which does not appear to log error entries, but does log info entries.
This is my host.json:
{
"version": "2.0",
"logging": {
"...
0
votes
1
answer
348
views
logging.info only writes format in stdout
I have a python script that prints debug and error outputs to stdout with print(). Now I want to retroactively add writing said output to a logfile, so I found logging - Redirect Python 'print' output ...
2
votes
0
answers
266
views
Python Logging UnicodeEncodeError
Logging error I can not print id to log
--- Logging error ---
Traceback (most recent call last):
File "C:\Anaconda3\envs\NLP_Research\lib\logging\__init__.py", line 1028, in emit
...
0
votes
0
answers
56
views
Increase verbose logging character limit
Im trying to use verbose logging to extract some information from the chroem console, however the issue im finding is the data is being truncated to 200 characters.
Im basically just using
System....
0
votes
1
answer
91
views
How should I approach error handling in PHP? Specifically user input
I've been using PHP for quite a long time now, and I do enjoy it. However, it has come to my attention that my error handling is not up to scratch and for the new project I am working on, I want to ...
0
votes
1
answer
2k
views
No error logs in /var/log/nginx/error.log [nginx]
The nginx on my Google Linux server is not printing error logs in the file /var/log/nginx/error.log. The content of my /etc/nginx/sites-available/app file is:
server {
listen 80;
server_name ...
1
vote
1
answer
675
views
Removing Severity: 8192 from PHP 8.1 error log
Recently upgraded my PHP version from 8.0 to 8.1, now it's displaying tons of error regarding this, mainly
Severity: 8192 --> Implicit conversion from float-string "1651218180.598425" to ...
0
votes
0
answers
31
views
Unwanted header information added to error_log output
This morning, I'm getting a lot of extra information in my error_log output that I wasn't getting yesterday:
[Tue May 03 09:39:06.802408 2022] [php7:notice] [pid 126080] [client ::1:57992] ACTUAL TEXT ...
1
vote
0
answers
535
views
How to create HTML report showing only log messages and no stdout call (print statements of the code)
I am learning pytest and logging using pycharm and python 3.9.6. I wanted to log the desired messages in the HTL report. I am using logging.getLogger(__name__) class for creating a logger object. all ...
1
vote
1
answer
280
views
Micronaut: Proper logging of "uncaught" Exceptions to not appear on System.err
I've a question regarding capture of "uncaught" exceptions, which appears with stack trace on System.err, circumventing logging configuration: All the other log messages appear properly ...
0
votes
1
answer
876
views
How to log error messages in the text file using selenium python
I am using pytest framework for automation a website. I have written the below code for logging the errors but this code only captures execution steps of the automation scripts like below
Logfile ...
0
votes
0
answers
362
views
Logging error to Oracle database from ASP.Net core 3.1
I want to log exceptions from .Net Core Web API to Oracle database.
I started using NLog but nothing is getting logged into the database. Also, there is error in the internalLogFile.
The below ...
0
votes
1
answer
799
views
Log errors into error table in insert statement
I came across an error invalid identifier in the error table even though the fields are present in the error table. The below is my test code for your reference. Any update absolutely appreciated.
...
0
votes
1
answer
961
views
React Native: Is there a way to get console.logs saved to log file on device?
In my React Native app, I want to be able to take all the console.logs and thrown errors and have them saved to a log file on the device running the app, so that the user can retrieve and send me the ...
0
votes
0
answers
62
views
How to create multiple logging files in one python script
I am trying to create two log files in python script:
one for capturing normal log messages
one for capturing exception messages
I have implemented the python code as below:
Create a log file for ...
0
votes
0
answers
111
views
How do i call streamhandler filehandler logging in other python files
logging.py
import logging
def log():
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s:%(name)s:%(message)s')
...