blob: 0e39420eadc1cfcf49839bfb2949df73d753f9d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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, std::uint64_t line, int level, const char* msg);
private:
// ...
};
}
}
#endif // WEB_APACHE_LOG
|