| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#pragma once |
|
2
|
|
|
|
|
|
|
#include |
|
3
|
|
|
|
|
|
|
#include |
|
4
|
|
|
|
|
|
|
#include |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
// typemaps |
|
7
|
|
|
|
|
|
|
namespace xs { |
|
8
|
|
|
|
|
|
|
template <> struct Typemap : TypemapBase { |
|
9
|
|
|
|
|
|
|
static inline panda::log::Level in (SV* sv) { |
|
10
|
|
|
|
|
|
|
int l = SvIV(sv); |
|
11
|
|
|
|
|
|
|
if (l < (int)panda::log::Level::VerboseDebug || l > (int)panda::log::Level::Emergency) throw panda::exception("invalid log level"); |
|
12
|
|
|
|
|
|
|
return (panda::log::Level)l; |
|
13
|
|
|
|
|
|
|
} |
|
14
|
|
|
|
|
|
|
static inline Sv out (panda::log::Level l, const Sv& = {}) { |
|
15
|
|
|
|
|
|
|
return Simple((int)l); |
|
16
|
|
|
|
|
|
|
} |
|
17
|
|
|
|
|
|
|
}; |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
template struct Typemap : TypemapObject { |
|
20
|
|
|
|
|
|
|
static panda::string package () { return "XLog::ILogger"; } |
|
21
|
|
|
|
|
|
|
}; |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
template <> struct Typemap : Typemap { |
|
24
|
|
|
|
|
|
|
static panda::log::ILoggerSP in (Sv arg); |
|
25
|
|
|
|
|
|
|
}; |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
template struct Typemap : TypemapObject { |
|
28
|
|
|
|
|
|
|
static panda::string package () { return "XLog::IFormatter"; } |
|
29
|
|
|
|
|
|
|
}; |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
template <> struct Typemap : Typemap { |
|
32
|
|
|
|
|
|
|
static panda::log::IFormatterSP in (Sv arg); |
|
33
|
|
|
|
|
|
|
}; |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
template struct Typemap : TypemapObject { |
|
36
|
38
|
|
|
|
|
|
static panda::string package () { return "XLog::Module"; } |
|
37
|
|
|
|
|
|
|
}; |
|
38
|
|
|
|
|
|
|
} |