blob: 2b21acfe82f3f463e111076f42edfca0789bdbd2 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
|
// file : cult/trace/log.hxx
// author : Boris Kolpackov <boris@kolpackov.net>
// copyright : Copyright (c) 2005-2010 Boris Kolpackov
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#ifndef CULT_TRACE_LOG_HXX
#define CULT_TRACE_LOG_HXX
#include <cult/types/fundamental.hxx>
#include <cult/trace/record.hxx>
namespace Cult
{
namespace Trace
{
class Log: public NonCopyable
{
public:
Log (Int level = -1);
public:
Int
level () const;
Void
level (Int level);
public:
//@@ should it be virtual?
//
Log&
operator<< (Record const& r);
public:
static Log&
instance ();
private:
Void
log_impl (Record const& r);
private:
Int level_;
};
}
}
#include <cult/trace/log.ixx>
#endif // CULT_TRACE_LOG_HXX
|