GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::LoggerManager Class Reference
Inheritance diagram for GpgFrontend::LoggerManager:
Inheritance graph
Collaboration diagram for GpgFrontend::LoggerManager:
Collaboration graph

Public Member Functions

 LoggerManager (int channel)
 
auto RegisterAsyncLogger (const QString &id, spdlog::level::level_enum) -> std::shared_ptr< spdlog::logger >
 
auto RegisterSyncLogger (const QString &id, spdlog::level::level_enum) -> std::shared_ptr< spdlog::logger >
 
auto GetLogger (const QString &id) -> std::shared_ptr< spdlog::logger >
 
- Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< LoggerManager >
 SingletonFunctionObject (const SingletonFunctionObject< LoggerManager > &)=delete
 prohibit copy
 
 SingletonFunctionObject (LoggerManager &&)=delete
 Construct a new Singleton Function Object object.
 
 SingletonFunctionObject (const LoggerManager &)=delete
 Construct a new Singleton Function Object object.
 
auto operator= (const SingletonFunctionObject< LoggerManager > &) -> SingletonFunctionObject &=delete
 prohibit copy More...
 
void operator= (const LoggerManager &)=delete
 
auto GetChannel () const -> int
 Get the Channel object. More...
 
- Public Member Functions inherited from GpgFrontend::ChannelObject
 ChannelObject () noexcept
 Construct a new Default Channel Object object.
 
virtual ~ChannelObject () noexcept
 Destroy the Channel Object object.
 
 ChannelObject (int channel, QString type)
 Construct a new Channel Object object. More...
 
auto GetChannel () const -> int
 Get the Channel object. More...
 
void SetChannel (int channel)
 Set the Channel object. More...
 

Static Public Member Functions

static auto GetDefaultLogger () -> std::shared_ptr< spdlog::logger >
 
static void SetDefaultLogLevel (spdlog::level::level_enum)
 
- Static Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< LoggerManager >
static auto GetInstance (int channel=GpgFrontend::kGpgFrontendDefaultChannel) -> LoggerManager &
 Get the Instance object. More...
 
static auto CreateInstance (int channel, const std::function< ChannelObjectPtr(void)> &factory) -> LoggerManager &
 Create a Instance object. More...
 
static void ReleaseChannel (int channel)
 
static auto GetDefaultChannel () -> int
 Get the Default Channel object. More...
 
static auto GetAllChannelId () -> std::vector< int >
 Get all the channel ids. More...
 
- Static Public Member Functions inherited from GpgFrontend::ChannelObject
static auto GetDefaultChannel () -> int
 Get the Default Channel object. More...
 

Private Attributes

std::map< QString, std::shared_ptr< spdlog::logger > > logger_map_
 

Static Private Attributes

static spdlog::level::level_enum default_log_level
 
static std::shared_ptr< spdlog::logger > default_logger = nullptr
 

Additional Inherited Members

- Protected Member Functions inherited from GpgFrontend::SingletonFunctionObject< LoggerManager >
 SingletonFunctionObject ()=default
 Construct a new Singleton Function Object object.
 
 SingletonFunctionObject (int channel)
 Construct a new Singleton Function Object object. More...
 
virtual ~SingletonFunctionObject ()=default
 Destroy the Singleton Function Object object.
 

Member Data Documentation

◆ default_log_level

spdlog::level::level_enum GpgFrontend::LoggerManager::default_log_level
staticprivate
Initial value:
=
spdlog::level::debug

The documentation for this class was generated from the following files: