pub struct IdBasedBlocking { /* private fields */ }Expand description
This struct is used to encapsulate the functionality of the IdBasedBlocking struct
The purpose of this struct is to encapsulate functionality to output to a different (buffered) templated file name based on the pool item id.
It takes a base_filename as a parameter which it will use internally to base all trace file names on If creates a tracing subscriber and holds on the the default guard to that subscriber, so the subscriber will be dropped when the IdBasedBlocking struct is dropped
Internally it holds a copy of the last level set so that it can avoid unnecessary reloads.
The “blocking” in the name refers to the fact that the writes will block the calling thread until they have completed. (although they are of course buffered)
The layer used with the writer is currently not configurable. This needs to be addressed at some point