I have a legacy app that runs under PHP and Apache.
It does all its logging via error_log()
, which ends up in Apache's error.log
.
I'd like to only send error messages to error.log
, and send other logging to access.log
.
What are my options? I would rather not drastically overhaul the Apache's logs format, because other tools parse it.
apache_note
. access.log
and error.log
with two or more writers. Am I missing a simpler solution?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.