Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

MJLogger Class Reference

#include <MJLogger.hh>

List of all members.

Public Types

enum  Severity {
  debugging = -1, trace = 0, routine, warning,
  error, fatal
}

Static Public Member Functions

Severity GetSeverity ()
ostream & msg (MJLogger::Severity severity, const char *facility, const char *code)
void SetSeverity (Severity sever)
void endlog (ostream &s)

Protected Member Functions

 MJLogger ()
 MJLogger (const MJLogger &)
 ~MJLogger ()

Static Private Member Functions

char * toString (Severity)

Static Private Attributes

ostream * _myOstream
ostream * _myErrstream
ostream * _myNullstream
Severity _minSeverity = MJLogger::debugging
bool _doPrint = true


Member Enumeration Documentation

enum MJLogger::Severity
 

Enumeration values:
debugging 
trace 
routine 
warning 
error 
fatal 

Definition at line 81 of file MJLogger.hh.


Constructor & Destructor Documentation

MJLogger::MJLogger  )  [protected]
 

Definition at line 69 of file MJLogger.cc.

MJLogger::MJLogger const MJLogger  )  [protected]
 

Definition at line 72 of file MJLogger.cc.

MJLogger::~MJLogger  )  [protected]
 

Definition at line 76 of file MJLogger.cc.


Member Function Documentation

void MJLogger::endlog ostream &  s  )  [static]
 

Definition at line 100 of file MJLogger.cc.

References _myOstream.

Referenced by endlog().

Severity MJLogger::GetSeverity  )  [inline, static]
 

Definition at line 104 of file MJLogger.hh.

Referenced by MJGeneratorTUNLFEL::BeginOfRunAction(), MJGeometryDetectorConstruction::BuildAllMaterialsInDatabase(), and MJOutputRoot::CloseRootFile().

ostream & MJLogger::msg MJLogger::Severity  severity,
const char *  facility,
const char *  code
[static]
 

Definition at line 81 of file MJLogger.cc.

References _doPrint, _myOstream, and toString().

void MJLogger::SetSeverity Severity  sever  )  [inline, static]
 

Definition at line 109 of file MJLogger.hh.

Referenced by MJManagerMessenger::SetNewValue().

char * MJLogger::toString Severity   )  [static, private]
 

Definition at line 104 of file MJLogger.cc.

Referenced by msg().


Member Data Documentation

bool MJLogger::_doPrint = true [static, private]
 

Definition at line 67 of file MJLogger.cc.

Referenced by msg().

MJLogger::Severity MJLogger::_minSeverity = MJLogger::debugging [static, private]
 

Definition at line 63 of file MJLogger.cc.

ostream * MJLogger::_myErrstream [static, private]
 

ostream * MJLogger::_myNullstream [static, private]
 

ostream * MJLogger::_myOstream [static, private]
 

Referenced by endlog(), and msg().


The documentation for this class was generated from the following files:
Generated on Mon Nov 29 16:58:57 2004 for Majorana Simulation by  doxygen 1.3.9.1