rfc:allow_multiple_simultaneous_syslog_connections
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:allow_multiple_simultaneous_syslog_connections [2011/07/04 23:32] – created fat | rfc:allow_multiple_simultaneous_syslog_connections [2017/09/22 13:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Allow multiple simultaneous syslog connections | ====== Allow multiple simultaneous syslog connections | ||
- | * Version: | + | * Version: 0.1 |
* Date: 2011-07-05 | * Date: 2011-07-05 | ||
* Author: Jérôme Loyet < | * Author: Jérôme Loyet < | ||
- | * Status: | + | * Status: |
* First Published at: https:// | * First Published at: https:// | ||
* Original discussion: http:// | * Original discussion: http:// | ||
Line 18: | Line 18: | ||
===== Proposal ===== | ===== Proposal ===== | ||
The proposed implementation should not break any current usage of syslog functions. Here is the changes : | The proposed implementation should not break any current usage of syslog functions. Here is the changes : | ||
- | |||
- | Global: | ||
* add error_log_facility and error_log_ident variables to php.ini in order to defined default syslog parameters. | * add error_log_facility and error_log_ident variables to php.ini in order to defined default syslog parameters. | ||
+ | * error_log_facility is set to LOG_USER by default | ||
+ | * errir_log_ident is set to " | ||
* add main/ | * add main/ | ||
- | * Add 3 variable in the struct _php_core_globals to keep trace of syslog options over the syslog() calls. | + | * Add 3 variable in the struct _php_core_globals to keep trace of syslog options over the php_syslog2() calls. |
* php_openlog: | * php_openlog: | ||
* php_closelog: | * php_closelog: | ||
Line 44: | Line 44: | ||
syslog(LOG_ERR, | syslog(LOG_ERR, | ||
/* | /* | ||
- | ident is default | + | ident is default aka " |
Jul 23 05:20:22 hostname php: test 1 wihout calling openlog | Jul 23 05:20:22 hostname php: test 1 wihout calling openlog | ||
*/ | */ | ||
Line 68: | Line 68: | ||
syslog(LOG_ERR, | syslog(LOG_ERR, | ||
/* | /* | ||
- | as $r1 and $r2 have been closed, ident has been reset to default | + | as $r1 and $r2 have been closed, ident has been reset to default aka " |
Jul 23 05:20:22 hostname php: test 2 wihout calling openlog | Jul 23 05:20:22 hostname php: test 2 wihout calling openlog | ||
*/ | */ | ||
Line 76: | Line 76: | ||
/* | /* | ||
openlog has been called, so ident not the default until closelog() call | openlog has been called, so ident not the default until closelog() call | ||
- | Jul 23 05:20:22 hostname php: test 3 with openlog() but without ressource | + | Jul 23 05:20:22 hostname php[24144]: test 3 with openlog() but without ressource |
*/ | */ | ||
closelog(); | closelog(); | ||
syslog(LOG_ERR, | syslog(LOG_ERR, | ||
/* | /* | ||
- | closelog() has been called, ident has been reset to default | + | closelog() has been called, ident has been reset to default aka " |
Jul 23 05:20:22 hostname php: test 4 wihout calling openlog | Jul 23 05:20:22 hostname php: test 4 wihout calling openlog | ||
*/ | */ | ||
Line 89: | Line 89: | ||
===== Patch ===== | ===== Patch ===== | ||
* The source patch can be found with the ticket: https:// | * The source patch can be found with the ticket: https:// | ||
- | * The documentation has not been patched yet. | + | |
+ | | ||
+ | * Tests have not been done/ | ||
===== References ===== | ===== References ===== | ||
Line 97: | Line 99: | ||
===== Changelog ===== | ===== Changelog ===== | ||
* 2011/07/05 Draft | * 2011/07/05 Draft | ||
+ | * 2011/07/05 first revision | ||
+ | * 2011/10/08 marked as dead |
rfc/allow_multiple_simultaneous_syslog_connections.1309822365.txt.gz · Last modified: 2017/09/22 13:28 (external edit)