Home -> LogManager -> GetLogger

Description

The GetLogger method creates a new scoped logger that sends accepted messages back to this log manager.

WarningWarning

The returned logger stores a reference to this manager. Do not destroy the manager while any logger created from it is still in use.

Usage

ILogger::unique_ptr GetLogger(const std::string& scopeName);

Argument list

scopeName [const std::string&]
The scope string assigned to the new logger.

Return value

[ILogger]
A new Logger object, returned through the ILogger::unique_ptr interface type.

See also