mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 06:16:55 -04:00
fix(logger): make null_logger work
This commit is contained in:
parent
46b3f3cd23
commit
368159f686
@ -133,7 +133,7 @@ class stream_logger : public logger {
|
|||||||
|
|
||||||
class null_logger : public logger {
|
class null_logger : public logger {
|
||||||
public:
|
public:
|
||||||
null_logger() = default;
|
null_logger();
|
||||||
|
|
||||||
void write(level_type, const std::string&, char const*, int) override {}
|
void write(level_type, const std::string&, char const*, int) override {}
|
||||||
};
|
};
|
||||||
|
@ -103,6 +103,8 @@ std::string logger::all_level_names() {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
null_logger::null_logger() { set_policy<prod_logger_policy>(); }
|
||||||
|
|
||||||
stream_logger::stream_logger(std::shared_ptr<terminal const> term,
|
stream_logger::stream_logger(std::shared_ptr<terminal const> term,
|
||||||
std::ostream& os, logger_options const& logopts)
|
std::ostream& os, logger_options const& logopts)
|
||||||
: os_(os)
|
: os_(os)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user