Thread safety

When talking about thread-safety, there are 2 types of things to consider:

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:

Note: I recommend defining loggers manually only if you know the lib very well. Otherwise, choose one of these:

Copyright John Torjo © 2007
Have a question/ suggestion/ comment? Send me feedback