|
|
@@ -223,19 +223,13 @@ namespace logging {
|
|
|
append<literal_gen>(std::string(curr_, end_));
|
|
|
}
|
|
|
|
|
|
- format out;
|
|
|
- out.gen = generators_;
|
|
|
- return out;
|
|
|
+ return format(generators_);
|
|
|
}
|
|
|
|
|
|
format_factory::format_factory(std::string const & fmt)
|
|
|
: data_string_(fmt), curr_(data_string_.c_str()),
|
|
|
end_(curr_ + data_string_.size()){}
|
|
|
|
|
|
- format format::parse_format_string(std::string const & fmt) {
|
|
|
- return format_factory(fmt).create();
|
|
|
- }
|
|
|
-
|
|
|
void format::process(logpacket const & pkt, std::ostream & os) const {
|
|
|
for (auto func : gen) { func->write(pkt, os); }
|
|
|
}
|