Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18412
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: log_errors = Off not work |
| Date | 2020-11-19 16:27 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <rp62sj$kir$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <i1kkt8Fk9stU1@mid.individual.net> <rp3f76$1kek$1@gioia.aioe.org> <i1kv9bFm9upU1@mid.individual.net> <rp3ht8$146i$1@gioia.aioe.org> <rp3m7v$lh5$1@dont-email.me> |
Il 18/11/20 18:39, Lew Pitcher ha scritto:
First of all I hope that I have understood the last things you write.
> So, to manipulate error logging/exclusively/ through error_log, you need
> to set log_errors to TRUE (or YES, or whatever boolean suits), then set
> error_log to either NULL (to log errors to the SAPI error log), or
> "syslog" (to log errors to your system logging mechanism) or a file path
> (to log errors to that file).
Therefore:
$ cat test.php
<?php
var_dump(ini_get('log_errors'));
ini_set('error_log', '/var/log/error.log');
error_log('abcxyz123');
$ php test.php
/tmp/tmp.eX4LOsdST6/test.php:2:
string(1) "0"
string(1) "0": suggests that logging is disabled
Quite right?
$ grep abcxyz123 /var/log/error.log
[19-Nov-2020 16:15:47 Europe/Berlin] abcxyz123
But something is not right :(
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 09:36 +0100
Re: log_errors = Off not work "J.O. Aho" <user@example.net> - 2020-11-18 14:12 +0100
Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 16:39 +0100
Re: log_errors = Off not work "J.O. Aho" <user@example.net> - 2020-11-18 17:09 +0100
Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-18 17:25 +0100
Re: log_errors = Off not work Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2020-11-18 17:39 +0000
Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-19 16:27 +0100
Re: log_errors = Off not work Arno Welzel <usenet@arnowelzel.de> - 2020-11-19 15:42 +0100
Re: log_errors = Off not work alex <1j9448a02@lnx159sneakemail.com.invalid> - 2020-11-19 19:22 +0100
csiph-web