hydrobricks
Loading...
Searching...
No Matches
LogScope Class Reference

#include <Log.h>

Public Member Functions

 LogScope (LogFile *file)
 
 LogScope (const LogScope &)=delete
 
LogScope & operator= (const LogScope &)=delete
 

Detailed Description

Route the messages logged on the current thread to a log file while the scope is alive (RAII), instead of the global log file. Scopes nest: the previous target is restored on exit. A null or closed file leaves the messages on the global log file.


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