Based on your application, you can fine tune any of the above to suit your needs:
In addition to the above, for loggers, you can have an even faster method of writing the messages to their destinations: on a dedicated thread.
The easiest way to specify the logger and filter classes, is to customize the lib to suit your application's needs.
Alternatively, you can define them manually:
filter::no_ts
- single threaded filterfilter::ts
- thread-safe filterfilter::use_tss_with_cache
- use TSS: have each thread cache the value, and refresh at a given periodfilter::use_tss_once_init
- use TSS: once the value is set, it will be used by each thread
Note: I recommend defining loggers manually only if you know the lib very well. Otherwise, choose one of these: