mirror of https://github.com/gabime/spdlog.git
Have logger::set_pattern call sink::set_pattern
Previously it instantiated a new pattern_formatter and called sink::set_formatter with it, overwriting the old formatter, and any custom settings, completely. Now, if a custom sink inherits base_sink, a call from logger::set_pattern will arrive at custom_sink::set_pattern_ as expected, instead of custom_sink::set_formatter_.pull/2420/head
parent
d7690d8e7e
commit
bcc31d2df0
Loading…
Reference in New Issue