aboutsummaryrefslogtreecommitdiff
path: root/web/apache
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-09 13:13:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-09 13:13:35 +0200
commit08447f7f7463dc3838b239790f647129e7f01629 (patch)
tree0d16c7bb6c22cacb2f20b7e837dc5df62d442e35 /web/apache
parentcf1ebc11bc8377e176caaa053f5f735ac6dd7dce (diff)
Initial take on web module interface
Diffstat (limited to 'web/apache')
-rw-r--r--web/apache/log38
1 files changed, 38 insertions, 0 deletions
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 <cstdint> // uint64_t
+
+#include <web/module>
+
+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