logger class for redirecting output to different locations/files
More...
#include <Logger.h>
|
| Logger (std::string prefix="", bool isQuiet=true) |
| ...constructor More...
|
|
void | OpenFile (std::string filename) |
| ..open file More...
|
|
void | CloseFile () |
| ..Close file More...
|
|
void | SetQuiet (bool isQuiet) |
| ..sets the output to be forwarded to the console (false) or only to the file (true) More...
|
|
template<typename T > |
void | Out (const T &rObject, bool withNewline=false) |
| ..Writes a message to the log and to console More...
|
|
std::string | OptionalPrefix () |
|
void | Info () const |
| Info routine that prints general information about the object (detail according to verbose level) More...
|
|
logger class for redirecting output to different locations/files
- Author
- Jörg F. Unger, NU
- Date
- July 2011
NuTo::Logger::Logger |
( |
std::string |
prefix = "" , |
|
|
bool |
isQuiet = true |
|
) |
| |
void NuTo::Logger::CloseFile |
( |
| ) |
|
void NuTo::Logger::Info |
( |
| ) |
const |
|
inline |
Info routine that prints general information about the object (detail according to verbose level)
void NuTo::Logger::OpenFile |
( |
std::string |
filename | ) |
|
..open file
- Parameters
-
filename | file string to open |
std::string NuTo::Logger::OptionalPrefix |
( |
| ) |
|
template<typename T >
void NuTo::Logger::Out |
( |
const T & |
rObject, |
|
|
bool |
withNewline = false |
|
) |
| |
|
inline |
..Writes a message to the log and to console
void NuTo::Logger::SetQuiet |
( |
bool |
isQuiet | ) |
|
..sets the output to be forwarded to the console (false) or only to the file (true)
- Parameters
-
isQuiet | see explanation above |
bool NuTo::Logger::mIsQuiet = false |
|
protected |
If true, no writing to console.
;
std::ofstream NuTo::Logger::mLogFile |
|
protected |
std::string NuTo::Logger::mLogFileName |
|
protected |
std::string NuTo::Logger::mPrefix |
|
protected |
prefix written on the beginning of the log line
bool NuTo::Logger::mPrintPrefix = true |
|
protected |
The documentation for this class was generated from the following files: