error-log Questions

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

13

Solved

I would restart Apache2 but there comes an Error $ sudo service apache2 start Starting web server apache2 Action 'start' failed. The Apache error log may have more information. But all error l...
Yulandayule asked 24/9, 2013 at 7:57

3

How can I log any errors from ExpressJS apps into a file? I know I can log a Slim framework easily with monolog: $app->get('/tickets', function (Request $request, Response $response) { $this-...
Tumer asked 27/3, 2017 at 18:47

3

Solved

I've been working with a MAMP installation for several weeks now, and when I started it up today it would not start. No mysql process was running so I checked the error log which shows the followin...
Snail asked 26/8, 2013 at 11:28

2

WordPress uses UTC / GMT for all its timestamps in the PHP error log. I would like to have the timestamps in the local server timezone. Changing the timezone in WP settings does not help; this affe...
Yoo asked 20/6, 2014 at 22:0

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

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

10

Solved

I'm using Django with FastCGI + nginx. Where are the logs (errors) stored in this case?
Namhoi asked 10/11, 2009 at 7:9

2

Solved

Is it possible to specify that MySQLi sends any errors and warnings to the PHP default 'error_log' directive? I can't seem to find any error options for the class specification, and I don't w...
Cantlon asked 28/5, 2010 at 20:5

3

php.ini contains following parameters: track_errors=On error_reporting=E_ALL & ~E_DEPRECATED & ~E_STRICT log_errors=On error_log="C:\xampp\php\logs\php_error_log" but "logs" folder is m...
Enlighten asked 6/4, 2017 at 7:1

4

Solved

I ran phpinfo() and the error_log directive simply says error_log. What file is that referring to? i.e. what would the full path to the error_log be?
Chirrup asked 25/4, 2014 at 6:48

4

Solved

Is it possible to log stacktraces for php warnings? Or catch a warning and error_log() it? There's some code causing warnings in my error log, but it's impossible to know what's causing these warn...
Dyanna asked 21/6, 2011 at 14:15

3

Solved

I have two directories in /var/www (say, /var/www/app1 and /var/www/app2) whose error logs I want sent to different files. Both are under the same domain, so I think that I can't put them under dif...
Selfinsurance asked 1/5, 2012 at 7:54

7

Solved

Is there a way to view the PHP error logs or Apache error logs in a web browser? I find it inconvenient to ssh into multiple servers and run a "tail" command to follow the error logs. Is there so...
Stomachache asked 30/10, 2011 at 19:11

6

Solved

Is there any way to write error log or exception into a file in java. i have gone through Log4j. I googled about it but diidnt find a good solution. I have written a simple code catch (Exception ...
Guizot asked 20/2, 2012 at 14:15

3

I have installed ftp.simple, watched the YouTube video, created a SFTP config for a remote server in the ftp-simple-temp-json, and run the command: Open the file directly from FTP server, among oth...
Grous asked 12/1, 2018 at 0:43

2

Solved

When error_log() is run from within phpunit it isn't written to the normal error log file. I'd like to stop this so that it writes to file as if I was hitting PHP via a browser. <?php class ex...
Consumedly asked 8/8, 2014 at 0:31

3

Solved

I want to append to each error log, the URL of the page the user requested before the error occurred. The logs already give me where the error occurs, but it's valuable for me know the URL. I saw t...
Porbeagle asked 10/2, 2016 at 17:32

3

Solved

I have updated to Android Studio 3.1 and it doesn't show the details of error during compile time. Suppose if I miss a semicolon somewhere or I haven't implemented a method of an interface, then it...
Umbrage asked 3/4, 2018 at 19:15

3

Solved

It's been working for ages and stopped. I must be missing something obvious. File /etc/php5/apache2/php.ini relevant settings are: display_errors = On (I am not sure if this makes a difference) log...
Bergmans asked 22/2, 2011 at 0:54

5

Solved

I'm sending some rather long stack traces to the apache error log using php's 'error_log()' and the entries are getting truncated. I have not found a way to make entries longer. Any ideas?
Androsterone asked 13/6, 2012 at 18:59

0

In Brief I have a WSGI script mounted at /app. If I request /app/resource, I get a correct response. But I also get an entry in my error log as if I had requested /resource. What could cause this?...
Tancred asked 18/5, 2016 at 8:41

5

How do you tail openshift log files? I issued the following command: rhc tail myapp It seems to show first error line and then stops, but doesn't exit. If I press ctrl+C it asks whether to stop ...
Chevrette asked 2/7, 2013 at 8:23

1

Solved

I am using an IIS 7.5 on Windows Server 2008 R2 together with PHP 5.5 NTS via FastCGI. Somehow my PHP does not want to log errors to a file. The file never gets created and when I create it manuall...
Brashear asked 20/7, 2013 at 18:3

1

PHP error logs typically look something like this: [Tue Sep 02 15:46:13 2014] [error] [client 192.168.0.105] blah, blah, ... , referer: https://192.168.0.21/blah/blah [Tue Sep 02 15:46:13 2014] [e...
Goolsby asked 2/9, 2014 at 20:49

© 2022 - 2024 — McMap. All rights reserved.