hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::LoggerStream Class Reference

#include <LoggerStream.hpp>

Public Types

enum  Priority {
  PRIO_NONE = 0, PRIO_FATAL = 1, PRIO_CRITICAL = 2, PRIO_ERROR = 3,
  PRIO_WARNING = 4, PRIO_NOTICE = 5, PRIO_INFORMATION = 6, PRIO_DEBUG = 7,
  PRIO_TRACE = 8
}

Public Member Functions

 LoggerStream (const std::string &source_="")
virtual ~LoggerStream (void)
void setPrefix (const std::string &prefix_)
std::string getPrefix (void) const
void setSuffix (const std::string &suffix_)
std::string getSuffix (void) const
unsigned int getLogPriority (void) const
void setSource (const std::string &source_)
std::string getSource (void) const
void resetLogStream (void)
void setLogStream (std::ostream &os_)
std::string logMsg (bool isReset=true)
std::ostream & log (unsigned int logPriority)
std::ostream & log (Priority priority)
void setLoggable (Loggable loggable_)
void resetLoggable (void)
std::ostream & put (const std::string &)
LoggerStreamendl (void)
LoggerStreamflush (void)
void saveSafe (void)

Detailed Description

Definition at line 27 of file LoggerStream.hpp.

Member Enumeration Documentation

Enumerator:
PRIO_NONE 
PRIO_FATAL 
PRIO_CRITICAL 
PRIO_ERROR 
PRIO_WARNING 
PRIO_NOTICE 
PRIO_INFORMATION 
PRIO_DEBUG 
PRIO_TRACE 

Definition at line 30 of file LoggerStream.hpp.

Constructor & Destructor Documentation

HCE::LoggerStream::LoggerStream ( const std::string &  source_ = "")
explicit

Definition at line 18 of file LoggerStream.cpp.

Here is the call graph for this function:

HCE::LoggerStream::~LoggerStream ( void  )
virtual

Definition at line 25 of file LoggerStream.cpp.

Member Function Documentation

LoggerStream & HCE::LoggerStream::endl ( void  )

Definition at line 77 of file LoggerStream.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

LoggerStream & HCE::LoggerStream::flush ( void  )

Definition at line 86 of file LoggerStream.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int HCE::LoggerStream::getLogPriority ( void  ) const
inline

Definition at line 52 of file LoggerStream.hpp.

Here is the caller graph for this function:

std::string HCE::LoggerStream::getPrefix ( void  ) const
inline

Definition at line 47 of file LoggerStream.hpp.

std::string HCE::LoggerStream::getSource ( void  ) const
inline

Definition at line 55 of file LoggerStream.hpp.

Here is the caller graph for this function:

std::string HCE::LoggerStream::getSuffix ( void  ) const
inline

Definition at line 50 of file LoggerStream.hpp.

std::ostream & HCE::LoggerStream::log ( unsigned int  logPriority)

Definition at line 50 of file LoggerStream.cpp.

std::ostream & HCE::LoggerStream::log ( Priority  priority)

Definition at line 56 of file LoggerStream.cpp.

Here is the call graph for this function:

std::string HCE::LoggerStream::logMsg ( bool  isReset = true)

Definition at line 42 of file LoggerStream.cpp.

Here is the caller graph for this function:

std::ostream & HCE::LoggerStream::put ( const std::string &  data)

Definition at line 71 of file LoggerStream.cpp.

Here is the caller graph for this function:

void HCE::LoggerStream::resetLoggable ( void  )

Definition at line 66 of file LoggerStream.cpp.

Here is the caller graph for this function:

void HCE::LoggerStream::resetLogStream ( void  )

Definition at line 29 of file LoggerStream.cpp.

Here is the caller graph for this function:

void HCE::LoggerStream::saveSafe ( void  )

Definition at line 95 of file LoggerStream.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::LoggerStream::setLoggable ( Loggable  loggable_)

Definition at line 61 of file LoggerStream.cpp.

Here is the caller graph for this function:

void HCE::LoggerStream::setLogStream ( std::ostream &  os_)

Definition at line 36 of file LoggerStream.cpp.

Here is the caller graph for this function:

void HCE::LoggerStream::setPrefix ( const std::string &  prefix_)
inline

Definition at line 46 of file LoggerStream.hpp.

void HCE::LoggerStream::setSource ( const std::string &  source_)
inline

Definition at line 54 of file LoggerStream.hpp.

void HCE::LoggerStream::setSuffix ( const std::string &  suffix_)
inline

Definition at line 49 of file LoggerStream.hpp.


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