|
hydrobricks
|
#include <Log.h>
Public Member Functions | |
| LogScope (LogFile *file) | |
| LogScope (const LogScope &)=delete | |
| LogScope & | operator= (const LogScope &)=delete |
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.