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
Hi,
I would need to allow my application to provide to the end user with a dynamic control on sinks configured in settings file (typically, change the filtering at runtime).
For that, I would need to have to list of the configured sinks, but from my searches results on the web, it looks like there is no such a support.
Would it be possible to add the support for querying and visiting the sinks?
If not, what alternative solution would you suggest (if possible, without having to reimplement setup file parser)?
Thanx in advance
The text was updated successfully, but these errors were encountered:
You are right, there is currently no way to discover the registered sinks after initializing the logging library. I would like to rectify this, but it's not clear how to do this to make it a useful feature.
Sinks, formatters and filters that are registered in the core with erased types. For example, the core operates on sinks through a pointer to sink interface, which is useful for feeding log records but not much else. The core, or the setup helper function, cannot produce a pointer to the actual sink that derives from this interface, like synchronous_sink<text_file_backend> for instance. It could produce a pointer to sink, which would require the user to use whatever means to discover the actual type of the sink, which doesn't look very useful.
Hi,
I would need to allow my application to provide to the end user with a dynamic control on sinks configured in settings file (typically, change the filtering at runtime).
For that, I would need to have to list of the configured sinks, but from my searches results on the web, it looks like there is no such a support.
Would it be possible to add the support for querying and visiting the sinks?
If not, what alternative solution would you suggest (if possible, without having to reimplement setup file parser)?
Thanx in advance
The text was updated successfully, but these errors were encountered: