FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
fei::LogManager Class Reference

#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 LogManagergetLogManager ()
 

Detailed Description

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.

Constructor & Destructor Documentation

fei::LogManager::~LogManager ( )
virtual

destructor

Definition at line 20 of file fei_LogManager.cpp.

Member Function Documentation

fei::LogManager & fei::LogManager::getLogManager ( )
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.

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.

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.

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.

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.

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.


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