aboutsummaryrefslogtreecommitdiff
path: root/web/apache/log
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-30 14:25:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-30 14:25:29 +0200
commit07780b06aa7b0fe049cc412309cf87e7fb10a0ef (patch)
treeb6d0f1ee50223f5cbbc4b8c5d0dc4f69ff7f2352 /web/apache/log
parent259a92ac4e1ac50e4c029f54265b735f6214b49d (diff)
Implement module configuration with an option list
Diffstat (limited to 'web/apache/log')
-rw-r--r--web/apache/log12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/apache/log b/web/apache/log
index f8c65e9..50e2f7c 100644
--- a/web/apache/log
+++ b/web/apache/log
@@ -21,7 +21,7 @@ namespace web
{
public:
- log (request_rec* req) noexcept: req_ (req) {}
+ log (server_rec* server) noexcept: server_ (server) {}
virtual void
write (const char* msg) {write (APLOG_ERR, msg);}
@@ -47,30 +47,30 @@ namespace web
level = std::min (level, APLOG_TRACE8);
if (func)
- ap_log_rerror (file,
+ ap_log_error (file,
line,
APLOG_NO_MODULE,
level,
0,
- req_,
+ server_,
"[%s]: %s",
func,
msg);
else
// skip function name placeholder from log line
//
- ap_log_rerror (file,
+ ap_log_error (file,
line,
APLOG_NO_MODULE,
level,
0,
- req_,
+ server_,
": %s",
msg);
}
private:
- request_rec* req_;
+ server_rec* server_;
};
}
}