carb::logging::ScopedFilePause

Defined in carb/logging/LoggingUtils.h

class ScopedFilePause

A class that pauses logging to a file when constructed and resumes logging to a file when destroyed.

Public Functions

inline ScopedFilePause(StandardLogger *inst)

RAII Constructor.

Parameters

inst – The StandardLogger to pause file logging for.

inline ScopedFilePause(StandardLogger2 *inst)

RAII Constructor.

Parameters

inst – The StandardLogger2 to pause file logging for.

inline ~ScopedFilePause()

RAII Destructor.

Restarts file logging on the StandardLogger that was given to the constructor.