# error_log -> sapi.log_message

- Thread: https://externals.io/message/41883
- Original archive: https://news-web.php.net/php.internals/41883
- Started by Stanislav Malyshev on 2008-11-12T20:58:02+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #41883 — Stanislav Malyshev — 2008-11-12T20:58:02+00:00

URL: https://externals.io/message/41883#41883

Hi!

I want to add error_log option (message_type = 4) which would send the 
message directly to sapi_module.log_message whatever error_log INI 
setting is. This would allow more flexibility in using SAPI logging 
channel, since presently there's no reliable way to access it without 
resetting error_log. Any objection?
-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com

---

## #41885 — John Carter -X johncart - PolicyApp Ltd@Cisco — 2008-11-12T21:18:19+00:00

URL: https://externals.io/message/41883#41885 · In reply to: #41883

Good idea. Would also be nice if added constants for the existing 0, 1
and 3 options.

John.

John Carter
Development Manager
NAC Governance Server
Cisco
johncart@cisco.com
+44 161 249 5825

-----Original Message-----
From: Stanislav Malyshev [mailto:stas@zend.com] 
Sent: 12 November 2008 20:58
To: 'PHP Internals'
Subject: [PHP-DEV] error_log -> sapi.log_message

Hi!

I want to add error_log option (message_type = 4) which would send the
message directly to sapi_module.log_message whatever error_log INI
setting is. This would allow more flexibility in using SAPI logging
channel, since presently there's no reliable way to access it without
resetting error_log. Any objection?
--
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com

--
 To unsubscribe,
visit: http://www.php.net/unsub.php

---

## #41908 — Marcus Boerger — 2008-11-13T19:37:20+00:00

URL: https://externals.io/message/41883#41908 · In reply to: #41883

Hello Stanislav,

  thanks :-)

Wednesday, November 12, 2008, 9:58:02 PM, you wrote:

> Hi!

> I want to add error_log option (message_type = 4) which would send the 
> message directly to sapi_module.log_message whatever error_log INI 
> setting is. This would allow more flexibility in using SAPI logging 
> channel, since presently there's no reliable way to access it without 
> resetting error_log. Any objection?
> -- 
> Stanislav Malyshev, Zend Software Architect
> stas@zend.com   http://www.zend.com/
> (408)253-8829   MSN: stas@zend.com




Best regards,
 Marcus
