Questions tagged [exception-logging]

Writing error and exception information to a log file or database for review or research.

Exception-logging is the practice of writing error and exception information to a log file or database for review or research by debuggers, administrators, developers, etc.

39 questions
0
votes
3 answers

Most Efficient Way to log Invocation Parameters For a Method in case of an exception

C# Development: I am calling a webservice/other methods in a try catch block with different parameters some of which may be custom objects. Please comment on the best way to log the parameters in a text file in case of an exception. Also is it…
None
0
votes
0 answers

symfony exception listener sending headers

I've created an exceptionListener which is catches exceptions. It's registered: App\Listener\ExceptionListener: tags: - { name: kernel.event_listener, event: kernel.exception, method: onKernelException } also got the logic to handle…
Roland
  • 183
  • 4
  • 21
0
votes
0 answers

How can I log exception errors to disk of a systemd service?

I have written below systemd service that runs the flask app on gunicorn following a tutorial. I am able to see access logs in /var/log/nginx/ but not log of error happening in the python flask app! How can I log errors to disk of a systemd…
Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197
0
votes
1 answer

coldfusion application.cfm error log not logging all errors

I have a Coldfusion application which uses a tag in the application.cfm file. This tag seems to be randomly logging errors. There are errors in the Coldfusion error log. I have been able to cause errors that get logged. I have also heard user…
user301752
  • 275
  • 1
  • 2
  • 7
0
votes
1 answer

How to build Exception Logger system in PHP that can have different Logger implementations e.g. File/DB and is testable

I'm building a PHP library that throws various custom Exceptions when it encounters errors. I need to log those exceptions and provide various implementations of the Logger so they could be logged in a file or a database. The exceptions need to be…
neilcrookes
  • 4,203
  • 2
  • 21
  • 27
0
votes
1 answer

Where Servlet exceptions are logged to in standalone Tomcat server

I download Tomcat zip distribution. Unzip it and configure it using the setenv.bat script as advised. The content of the setenv.bat is as follows: @echo off set CATALINA_HOME=D:\tomcat7_inst_8543\tomcat7062 set…
w2know
  • 67
  • 4
  • 13
0
votes
0 answers

Exception logging and writing to an existing file once created

I am trying to publish a service and I am having issues (on the networkers side), so I am trying to write some exception logging to help them along. StreamWriter log; if (!File.Exists("C:\\Projects\\logfile.txt")) { log = new…
PapaNer
  • 31
  • 2
  • 7
0
votes
3 answers

Magento site keeps crashing inconsistently

My magento site has started crashing. Recently while accessing the site mostly shows the following error message There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record…
-2
votes
1 answer

can anyone explain me about what is the difference between log.utils error, log.error, log.info and ExceptionLog error?

anyone explain me about why and where we use log.info and log.error and logUtils.error and ExceptionLog error. we can also use system.out.println for printing but why we use logs for printing and why we have these many of logs?
Hola Hola
  • 9
  • 2
1 2
3