Home -> ILogger -> GetLoggerChildScope
Description
The GetLoggerChildScope method creates a new logger object for a scope below the current logger scope.
Important
The standard Logger implementation joins parent and child scopes using a period, so a child named Render below Application becomes Application.Render.
Usage
ILogger::unique_ptr GetLoggerChildScope(const std::string& childScopeName) const;
Argument list
- childScopeName [const std::string&]
- The child scope name to append to the current scope.
Return value
- [ILogger]
- A new ILogger object for the child scope, wrapped in ILogger::unique_ptr.