PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
util::io::LoggerDeck Struct Reference

Deck to store log parameters. More...

#include <io.h>

Collaboration diagram for util::io::LoggerDeck:

Public Member Functions

 LoggerDeck ()
 Constructor.
 
 LoggerDeck (int debug_level, std::string filename)
 Constructor.
 

Data Fields

int d_debugLevel
 Debug level.
 
std::string d_filename
 Filename to print log.
 
bool d_printScreen
 Print to std::cout?
 
bool d_printFile
 Print to file?
 

Detailed Description

Deck to store log parameters.

Definition at line 217 of file io.h.

Constructor & Destructor Documentation

◆ LoggerDeck() [1/2]

util::io::LoggerDeck::LoggerDeck ( )
inline

Constructor.

Definition at line 234 of file io.h.

234: d_debugLevel(5), d_printScreen(true), d_printFile(false) {}
bool d_printFile
Print to file?
Definition io.h:229
int d_debugLevel
Debug level.
Definition io.h:220
bool d_printScreen
Print to std::cout?
Definition io.h:226

◆ LoggerDeck() [2/2]

util::io::LoggerDeck::LoggerDeck ( int  debug_level,
std::string  filename 
)
inline

Constructor.

Parameters
debug_levelSpecify debug level/verbosity
filenameSpecify log filename

Definition at line 242 of file io.h.

243 : d_debugLevel(debug_level), d_filename(filename), d_printScreen
244 (d_debugLevel > 0), d_printFile(!d_filename.empty()) {}
std::string d_filename
Filename to print log.
Definition io.h:223

Field Documentation

◆ d_debugLevel

int util::io::LoggerDeck::d_debugLevel

Debug level.

Definition at line 220 of file io.h.

◆ d_filename

std::string util::io::LoggerDeck::d_filename

Filename to print log.

Definition at line 223 of file io.h.

Referenced by util::io::Logger::log().

◆ d_printFile

bool util::io::LoggerDeck::d_printFile

Print to file?

Definition at line 229 of file io.h.

Referenced by util::io::Logger::log(), and util::io::Logger::~Logger().

◆ d_printScreen

bool util::io::LoggerDeck::d_printScreen

Print to std::cout?

Definition at line 226 of file io.h.

Referenced by util::io::Logger::log().


The documentation for this struct was generated from the following file: