FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <fei_LogManager.hpp>
Public Member Functions | |
virtual | ~LogManager () |
OutputLevel | getOutputLevel () |
void | setOutputLevel (OutputLevel olevel) |
void | setOutputLevel (const char *olevel) |
void | setOutputPath (const std::string &opath) |
const std::string & | getOutputPath () |
void | setNumProcs (int nprocs, int localproc) |
Static Public Member Functions | |
static LogManager & | getLogManager () |
Private Member Functions | |
LogManager () | |
Private Attributes | |
OutputLevel | output_level_ |
std::string | output_path_ |
int | numProcs_ |
int | localProc_ |
Singleton class to manage attributes controlling the type and amount of data that should be written to the fei log file.
Definition at line 22 of file fei_LogManager.hpp.
|
virtual |
destructor
Definition at line 20 of file fei_LogManager.cpp.
|
private |
constructor
Definition at line 14 of file fei_LogManager.cpp.
|
static |
Accessor for the one-and-only instance of LogManager. Constructs a LogManager instance on the first call, returns that same instance on the first and all subsequent calls.
Definition at line 24 of file fei_LogManager.cpp.
Referenced by fei::Factory::Factory(), snl_fei::LinearSystem_General::loadComplete(), fei::Factory::parameters(), fei::Matrix_core::parameters(), fei::VectorSpace::setLocalEqnNumbers(), fei::MatrixGraph_Impl2::setParameters(), fei::VectorSpace::setParameters(), and fei::Factory::~Factory().
fei::OutputLevel fei::LogManager::getOutputLevel | ( | ) |
Query output-level. Result is an enumeration. The enumeration is defined in fei_fwd.hpp.
Definition at line 30 of file fei_LogManager.cpp.
void fei::LogManager::setOutputLevel | ( | fei::OutputLevel | olevel | ) |
Set output-level, using an enumeration. The enumeration is defined in fei_fwd.hpp.
Definition at line 35 of file fei_LogManager.cpp.
References fei::BRIEF_LOGS, fei::LogFile::getLogFile(), and fei::LogFile::openOutputStream().
Referenced by fei::Factory::parameters(), fei::Matrix_core::parameters(), fei::MatrixGraph_Impl2::setParameters(), fei::VectorSpace::setParameters(), and fei::Factory::~Factory().
void fei::LogManager::setOutputLevel | ( | const char * | olevel | ) |
Set output-level, using a string. Valid values are strings that match the names of the enumeration values. e.g., "MATRIX_FILES", etc.
Definition at line 53 of file fei_LogManager.cpp.
References fei::utils::string_to_output_level().
void fei::LogManager::setOutputPath | ( | const std::string & | opath | ) |
Specify path where debug-log files should be written.
Definition at line 58 of file fei_LogManager.cpp.
Referenced by fei::Factory::parameters().
const std::string & fei::LogManager::getOutputPath | ( | ) |
Query for string specifying path to where debug-log files should be written.
Definition at line 63 of file fei_LogManager.cpp.
Referenced by snl_fei::LinearSystem_General::loadComplete(), and fei::VectorSpace::setLocalEqnNumbers().
void fei::LogManager::setNumProcs | ( | int | nprocs, |
int | localproc | ||
) |
Set numProcs and localProc (which will be used in the log-file-name).
Definition at line 68 of file fei_LogManager.cpp.
Referenced by fei::Factory::Factory().
|
private |
Definition at line 61 of file fei_LogManager.hpp.
|
private |
Definition at line 62 of file fei_LogManager.hpp.
|
private |
Definition at line 63 of file fei_LogManager.hpp.
|
private |
Definition at line 64 of file fei_LogManager.hpp.