fei::LogManager Class Reference

#include <fei_LogManager.hpp>

List of all members.

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)
void registerLogger (Logger *logger)
void removeLogger (Logger *logger)

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 21 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 25 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 31 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 36 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 58 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 63 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 68 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 73 of file fei_LogManager.cpp.

void fei::LogManager::registerLogger ( fei::Logger logger  ) 

Register an instance of fei::Logger, to be notified when relevant attributes change.

Definition at line 79 of file fei_LogManager.cpp.

void fei::LogManager::removeLogger ( fei::Logger logger  ) 

Remove an instance of fei::Logger from the notify list.

Definition at line 84 of file fei_LogManager.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends
Generated on Wed Apr 13 10:08:35 2011 for FEI by  doxygen 1.6.3