Singleton for managing the logging streams associated with execution threads.
#include <Workspace/Application/distributedlogmanager.h>
◆ DistributedLogManager()
◆ addLog()
- Parameters
-
package | The log package to send |
◆ addSink()
- Parameters
-
logSink | The DistributedLogSink object to use as the main sink for the application. It is the caller's responsibility to ensure that logStream survives for the life of the application or until the sink is popped off the main log sink list through a call to removeSink(). |
- Warning
- This function should only be called at a time when it can be guaranteed that nothing will try to write to the main log sink. There are no protections against race conditions when pushing or popping the log sink list.
- See also
- removeSink()
◆ getInstance()
- Returns
- The LogManager singleton instance used by the application.
◆ getProcessInfo()
◆ getSinks()
- Returns
- Read only list of current log streams
◆ operator=()
◆ removeSink()
- Parameters
-
logSink | The log sink to remove off the list. |
- Warning
- This function should only be called at a time when it can be guaranteed that nothing will try to write to the main log stream. There are no protections against race conditions when pushing or popping the log sink list.
- Returns
- True if the logStream exisited in the list and has been removed.
- See also
- addSink()