Replies: 2 comments
-
There isn’t such API. There are 2 buffers the first is an SPSC queue and the second is the TransitEvent buffer in the backend thread. in the TransitEvent buffer the messages are partially formatted so it’s possible to look there in the debugger. There is an API to look at each fully formatted log message one by one as it arrives (not the buffered ones) and filter it before writing it to the Sink. That might be sufficient depending on what you’re trying to achieve eg https://github.com/odygrd/quill/blob/master/examples/user_defined_filter.cpp if the above is not enough then you can implement your own Sink and buffer the messages on your side and then add a thread-safe flag for pausing the write to the Sink. Here is an example with a custom Sink buffering the messages https://github.com/odygrd/quill/blob/master/examples/user_defined_sink.cpp |
Beta Was this translation helpful? Give feedback.
-
Thank you for the suggestions! |
Beta Was this translation helpful? Give feedback.
-
Just curious if there are any APIs to pause the logger, and to search for a message that went there. It's a niche use case so I'm not surprised I didn't find anything in the code but wanted to check here just in case.
Beta Was this translation helpful? Give feedback.
All reactions