From 08447f7f7463dc3838b239790f647129e7f01629 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 9 Apr 2015 13:13:35 +0200 Subject: Initial take on web module interface --- web/apache/log | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 web/apache/log (limited to 'web/apache') diff --git a/web/apache/log b/web/apache/log new file mode 100644 index 0000000..8464763 --- /dev/null +++ b/web/apache/log @@ -0,0 +1,38 @@ +// file : web/apache/log -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef WEB_APACHE_LOG +#define WEB_APACHE_LOG + +#include // uint64_t + +#include + +namespace web +{ + namespace apache + { + class log: public web::log + { + public: + // ... + + virtual void + write (const char* msg) {write (APLOG_ERR, msg);} + + // Apache-specific interface. + // + void + write (int level, const char* msg) {write (nullptr, 0, level, msg);} + + void + write (const char* file, uint64_t line, int level, const char* msg); + + private: + // ... + }; + } +} + +#endif // WEB_APACHE_LOG -- cgit v1.1