You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know if it will be possible to add a kind of:
auto& LoggerBase::get_sinks()
{
return sinks;
}
In the previous version of quill, If I remember correctly, we were able to create a root logger with multiple handlers, then when another logger was created, it "inherits" the handlers from the root logger.
I would like to be able to do something equivalent, like:
auto root_logger = quill::Frontend::create_or_get_logger("root", {sink1, sink2});
...
// then maybe in another class / thread ... auto my_logger = quill::Frontend::create_or_get_logger("root", quill::Frontend::get_logger("root")->get_sinks());
What do you think about this point, maybe there is a better way to achieve this.
Regards,
Jol
The text was updated successfully, but these errors were encountered:
Discussed in #593
Originally posted by jol September 27, 2024
Hi,
I would like to know if it will be possible to add a kind of:
In the previous version of quill, If I remember correctly, we were able to create a root logger with multiple handlers, then when another logger was created, it "inherits" the handlers from the root logger.
I would like to be able to do something equivalent, like:
What do you think about this point, maybe there is a better way to achieve this.
Regards,
Jol
The text was updated successfully, but these errors were encountered: