Replies: 3 comments 4 replies
-
Hey, Yeah, that was removed in the latest versions because it was adding some extra complexity, especially with the default logger, and I didn’t find it particularly useful since loggers are usually created at the start of the application anyway. Adding an accessor to the logger base feels a bit risky to expose in the API. The issue is that the sinks are managed by the backend worker thread, and if we expose the pointer, there's a chance someone might accidentally call a function on it, which could lead to problems. Although, to be fair, the sinks are already accessible in a similar way if you use What we could do instead is add a |
Beta Was this translation helpful? Give feedback.
-
In the same idea, I would have access from the Logger to the user_clock & and clock_source. I'm in a situation where I have a root logger with some specific sinks and a custom user_clock. With the previous development, I'm able to have other Loggers that " inherit" from the root_logger. Now, for some loggers, I would have some dedicated sink but still use the same user_clock and clock_source as the root logger. Having public accessors would be excellent for getting user_clock & clock_source. Jol |
Beta Was this translation helpful? Give feedback.
-
Perfect, I can use the master branch ! Thank you |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions