| line |
true |
false |
branch |
|
122
|
8 |
0 |
Stash stash(__PACKAGE__); |
|
124
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
8 |
0 |
xs::exp::create_constants(stash, { |
|
|
72 |
8 |
xs::exp::create_constants(stash, { |
|
|
0 |
0 |
xs::exp::create_constants(stash, { |
|
134
|
8 |
0 |
}); |
|
136
|
8 |
0 |
auto root_module = xs::out(&::panda_log_module); |
|
138
|
8 |
0 |
stash.add_const_sub("default_format", xs::out(default_format)); |
|
|
8 |
0 |
stash.add_const_sub("default_format", xs::out(default_format)); |
|
139
|
8 |
0 |
stash.add_const_sub("root", root_module); |
|
140
|
8 |
0 |
stash.store("root_module", root_module); |
|
142
|
8 |
0 |
xs::at_perl_destroy([]{ |
|
143
|
8 |
0 |
if (dyn_cast(get_logger().get())) set_logger(nullptr); |
|
|
0 |
8 |
if (dyn_cast(get_logger().get())) set_logger(nullptr); |
|
|
0 |
0 |
if (dyn_cast(get_logger().get())) set_logger(nullptr); |
|
144
|
8 |
0 |
if (dyn_cast(get_formatter().get())) set_formatter(nullptr); |
|
|
0 |
8 |
if (dyn_cast(get_formatter().get())) set_formatter(nullptr); |
|
|
0 |
0 |
if (dyn_cast(get_formatter().get())) set_formatter(nullptr); |
|
145
|
8 |
0 |
}); |
|
148
|
30 |
0 |
void set_level (Level level, string_view module = {}) |
|
150
|
53 |
0 |
void set_logger (ILoggerSP logger) |
|
|
53 |
0 |
void set_logger (ILoggerSP logger) |
|
154
|
50 |
0 |
set_formatter(fmt); |
|
|
50 |
0 |
set_formatter(fmt); |
|
158
|
1 |
0 |
|
|
160
|
1 |
0 |
|
|
162
|
3 |
0 |
|
|
165
|
31 |
33 |
if (!(PL_op->op_spare & 1)) xlog::optimize(); |
|
170
|
20 |
0 |
} |
|
175
|
53 |
48 |
if (!(PL_op->op_spare & 1)) xlog::optimize(level); |