diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-27 13:52:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-27 13:52:25 +0200 |
commit | 04c1324c57692dfd22fab211a7443aaf484f07ce (patch) | |
tree | 9dcc8f36d6d94f02b7c3b2ed1485a50417e3b5e0 /web/apache/log | |
parent | b4c7f615916cd41e4772c5dc1b2f9f59b3b2ae6c (diff) |
Implement module configuration, cleanup the code
Diffstat (limited to 'web/apache/log')
-rw-r--r-- | web/apache/log | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/apache/log b/web/apache/log index 151efb4..f8c65e9 100644 --- a/web/apache/log +++ b/web/apache/log @@ -5,12 +5,12 @@ #ifndef WEB_APACHE_LOG #define WEB_APACHE_LOG -#include <algorithm> // min() -#include <cstdint> // uint64_t - #include <httpd/httpd.h> // request_rec #include <httpd/http_log.h> +#include <cstdint> // uint64_t +#include <algorithm> // min() + #include <web/module> namespace web @@ -21,7 +21,7 @@ namespace web { public: - log (request_rec* req) noexcept : req_ (req) {} + log (request_rec* req) noexcept: req_ (req) {} virtual void write (const char* msg) {write (APLOG_ERR, msg);} @@ -29,7 +29,7 @@ namespace web // Apache-specific interface. // void - write (int level, const char* msg) + write (int level, const char* msg) const noexcept { write (nullptr, 0, nullptr, level, msg); } @@ -39,7 +39,7 @@ namespace web std::uint64_t line, const char* func, int level, - const char* msg) + const char* msg) const noexcept { if (file && *file) file = nullptr; // skip file/line placeholder from log line. |