使用mod_lua如何不使用request_rec对象写入Apache的error_log?

我知道我可以使用r:debug()r:info()等在error_log中记录日志。但是在我的代码中有些地方我不想传递请求。是否有像mod_python中的apache.log_error()一样的东西可以在mod_lua中实现这一点?

点赞
用户98959
用户98959

你可以随时将错误信息写入 stderr,那么你就会被记录在主(基本配置)ErrorLog中。

2016-08-30 15:25:13