error-logging Questions

13

Solved

Is there a way to make Python logging using the logging module automatically output things to stdout in addition to the log file where they are supposed to go? For example, I'd like all calls to lo...
Scend asked 27/12, 2012 at 17:11

3

Solved

Git repo of project: https://github.com/tombusby/docker-laravel-experiments (HEAD at time of writing is 823fd22). Here is my docker-compose.yml: nginx: image: nginx:stable volumes: - ./n...
Duthie asked 6/5, 2016 at 12:47

3

Solved

My PHP script has an error. For example, this shows this on the screen: Warning: require(/var/www/foo.php): failed to open stream: Where can I find this in the logs? I tried docker logs container...
Abalone asked 17/3, 2019 at 12:51

13

Solved

I'm getting 500 Internal Server errors when I try to make an HTTP POST to a specific address in my app. I've looked into the server logs in the custom log directory specified in the virtual hosts f...
Aurore asked 19/1, 2011 at 3:4

4

Solved

I'm trying to use error_log() in a custom WordPress plugin I am building but for some reason, I can't. When I use error_log() my site just breaks, but I'm not seeing any errors in debug.log. I ha...
Argyres asked 20/6, 2014 at 14:49

9

Solved

Whenever a user reports an error such as System.Runtime.InteropServices.SEHException - External component has thrown an exception? is there anything that I as a programmer can do to determine...
Allometry asked 21/8, 2009 at 19:35

2

Solved

When using error_log(..) in PHP I would like to specify the line where the error occurred : error_log("something bad happened on line $LINE"); How can I do that ?
Hut asked 28/8, 2013 at 7:59

3

Solved

I have a program I'm writing that I want to write a custom logging facility for (e.g. diagnostic, notice, warning, error). Should I be using the stdout or the stderr stream to do this? It is an in...
Frontogenesis asked 7/2, 2011 at 7:57

3

Solved

I'm writing an add-in for another piece of software through its API. The classes returned by the API can only be access through the native software and the API. So I am writing my own stand alone P...
Hilbert asked 26/10, 2015 at 19:32

2

Solved

By design, my application sometimes produces repeating errors which fill up the log file and make it annoying to read. It looks like that: WARNING:__main__:CRON10: clock unset or no wind update re...
Persephone asked 22/6, 2017 at 6:18

3

Solved

My application exits for no reason, most likely due to errors in the profiler I used because it interferes with all the CLR runtime stuff. The issue is is there any file at any location where .Net ...
Risa asked 25/8, 2009 at 2:55

3

Solved

How can I change default log file location <project-name>/storage/logs/laravel.log to something like /var/logs/<project-name>/laravel.log?
Quoin asked 20/11, 2015 at 11:46

7

Solved

So, when playing with the development I can just set settings.DEBUG to True and if an error occures I can see it nicely formatted, with good stack trace and request information. But on kind of pro...
Losel asked 26/10, 2008 at 14:37

1

I'm trying to get the Python logging facility working without success, despite googling and reading the docs. This is a WSGI Python app inside Passenger on a Dreamhost shared server. The Paste midd...
Gesso asked 24/5, 2015 at 21:53

16

Solved

I'm looking for a way to print the call stack in PHP. Bonus points if the function flushes the IO buffer.
Stellular asked 14/9, 2009 at 18:22

15

What am I doing wrong here? I have error_log set in the .ini file along with error_reporting = E_ALL | E_STRICT. What else am I missing? This usually gave it to me. I want this set in the .ini file...
Unseasoned asked 5/11, 2009 at 2:48

5

Solved

I'm trying to write a test case for a debugging method that writes messages to the JavaScript console using console.log(). The test has to check that the message has been successfully written to th...
Anode asked 30/8, 2011 at 16:54

1

Solved

I have a load of entries in my web server error log from the same referer. See example below: Cannot serve directory /home/*****/public_html/wp-admin/css/: No matching DirectoryIndex (index.php,ind...
Eldrida asked 18/8, 2021 at 11:45

4

Solved

I can specify custom log format for access_log on Nginx, but it doesn't work for error_log. Is there anyway to achieve this?
Esker asked 22/11, 2010 at 15:1

5

Solved

What is the simplest method for temporarily changing the logging message format, in Python (through the logging module)? The goal is to have some standard message format, while being able to tempo...
Chretien asked 27/7, 2011 at 16:25

2

What should happen if I log an exception? Example: Yii::error(new Exception('test')); Currently with my basic application template nothing happens. Nothing gets logged (further error() calls don...
Grateful asked 12/2, 2015 at 12:9

3

Solved

I have a WAMP 2.2 server running on a Windows 7 box and cannot get PHP error logging working at all. The file is always blank even after I explicitly trigger USER_ERROR errors, or cause normal ERR...
Purdy asked 10/2, 2012 at 16:18

4

Solved

I'm looking for the way to log stuff in Internet Explorer Developer Console that preserve page refresh. Under Google Chrome and Firefox's Firebug it's an option for that, but I could not find it u...
Flux asked 7/3, 2012 at 11:20

2

I'm trying to write a highly modular Python logging system (using the logging module) and include information from the trace module in the log message. For example, I want to be able to write a lin...
Rushing asked 14/8, 2020 at 0:25

5

I have a PHP app deployed on Heroku, but I can't seem to locate the apache error log. Using the command $heroku logs I seem to get only the apache access logs. So a bunch of GET 200 OK etc, but no ...
Coroner asked 7/12, 2012 at 23:12

© 2022 - 2024 — McMap. All rights reserved.