ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lifecycle_manager Class Referencefinal

Manages the starting and stopping of logging for an application. More...

#include <lifecycle_manager.hpp>

Collaboration diagram for lifecycle_manager:
Collaboration graph

Public Member Functions

 lifecycle_manager (lifecycle_manager &&)=delete
 
lifecycle_manageroperator= (const lifecycle_manager &)=delete
 
 lifecycle_manager (std::optional< logging_options > ocfg)
 Initialise logging for the entire application.
 
 ~lifecycle_manager ()
 Shutdown logging for the entire application.
 

Detailed Description

Manages the starting and stopping of logging for an application.

Note: this class uses boost shared_ptr due to legacy reasons (boost log does not support std::shared_ptr).

Constructor & Destructor Documentation

◆ lifecycle_manager()

lifecycle_manager ( std::optional< logging_options ocfg)
explicit

Initialise logging for the entire application.

If no configuration is supplied, logging is disabled.

Note
Must be done in a thread-safe context.

◆ ~lifecycle_manager()

Shutdown logging for the entire application.

Should be done in a thread-safe context.