Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
apache2中的自定义错误日志_Apache_Logging_Apache2 - Fatal编程技术网

apache2中的自定义错误日志

apache2中的自定义错误日志,apache,logging,apache2,Apache,Logging,Apache2,在apache日志文件中,我收到长消息,例如: [Wed Feb 21 19:32:18.916451 2018] [:error] [pid 23919] [client 10.0.2.2:50156] Error Message... 如何获取自定义日志消息,如: 格式:[时间][留言] [19:32:18] Error Message.... 放置 ErrorLogFormat“[%{c}t]%M” 在apache配置文件中(假定为/etc/apache2/apache2.conf)

在apache日志文件中,我收到长消息,例如:

[Wed Feb 21 19:32:18.916451 2018] [:error] [pid 23919] [client 10.0.2.2:50156] Error Message...
如何获取自定义日志消息,如:

格式:[时间][留言]

[19:32:18] Error Message....
放置
ErrorLogFormat“[%{c}t]%M”

在apache配置文件中(假定为/etc/apache2/apache2.conf)
您可以在中找到其他格式选项