PLaSK library
Loading...
Searching...
No Matches
plask::NoLogging Class Reference

Logger switch. More...

#include <plask/log/log.hpp>

Public Member Functions

 NoLogging ()
 
 NoLogging (bool silent)
 
 ~NoLogging ()
 
void set (bool silent)
 Set logging state.
 
void silence ()
 Turn off logging.
 

Detailed Description

Logger switch.

Creating objects of these class temporarily turns off logging.

Definition at line 48 of file log.hpp.

Constructor & Destructor Documentation

◆ NoLogging() [1/2]

plask::NoLogging::NoLogging ( )

Definition at line 202 of file log.cpp.

◆ NoLogging() [2/2]

plask::NoLogging::NoLogging ( bool  silent)

Definition at line 205 of file log.cpp.

◆ ~NoLogging()

plask::NoLogging::~NoLogging ( )

Definition at line 209 of file log.cpp.

Member Function Documentation

◆ set()

void plask::NoLogging::set ( bool  silent)

Set logging state.

Turn off logging in started without it.

Definition at line 214 of file log.cpp.

◆ silence()

void plask::NoLogging::silence ( )
inline

Turn off logging.

Definition at line 62 of file log.hpp.


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