Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Logger::LogOut Class Reference
Inheritance diagram for Logger::LogOut:
Inheritance graph
[legend]

Public Member Functions

std::string getDate (void)
 
void header (int level)
 Message header appender function. More...
 
 LogOut (::coil::LogStream::streambuf_type *streambuf)
 
virtual std::string & prefix (std::string &prefix, int level)
 
void setDateFormat (const char *format)
 
void setName (const char *name)
 
virtual ~LogOut ()
 
- Public Member Functions inherited from coil::log_stream< _CharT, _Traits >
void disableLock ()
 Disable the lock mode. More...
 
void enableLock ()
 Enable the lock mode. More...
 
int getLevel () const
 Get the log level. More...
 
bool isValid (int level) const
 Log level effective check. More...
 
ostream_typelevel (int level)
 Acquire log stream. More...
 
void lock ()
 Acquire log lock Acquire log lock when the lock mode is set. More...
 
 log_stream (streambuf_type *sb, int levelmin, int levelmax, int level)
 Constructor. More...
 
bool setLevel (int level)
 Set the log level. More...
 
void unlock ()
 Release the log lock Release the log lock when the lock mode is set. More...
 

Protected Member Functions

std::string getFmtDate ()
 
- Protected Member Functions inherited from coil::log_stream< _CharT, _Traits >
 log_stream ()
 Default constructor. More...
 
 log_stream (const log_stream &x)
 Copy Constructor. More...
 
log_streamoperator= (const log_stream &x)
 Assignment operator. More...
 
 ~log_stream ()
 Destructor. More...
 

Protected Attributes

std::string m_dateFormat
 
std::string m_name
 

Additional Inherited Members

- Public Types inherited from coil::log_stream< _CharT, _Traits >
typedef _CharT char_type
 
typedef coil::Guard< MutexGuard
 
typedef coil::Mutex Mutex
 
typedef std::basic_ostream< char_type, traits_typeostream_type
 
typedef std::basic_streambuf< char_type, traits_typestreambuf_type
 
typedef _Traits traits_type
 
- Static Public Attributes inherited from coil::log_stream< _CharT, _Traits >
static bool m_lockEnable = true
 Lock enable mode. More...
 
static Mutex m_mutex
 Mutual exclusion object. More...
 

Detailed Description

Definition at line 107 of file LoggerTests.cpp.

Constructor & Destructor Documentation

Logger::LogOut::LogOut ( ::coil::LogStream::streambuf_type streambuf)
inline

Definition at line 113 of file LoggerTests.cpp.

virtual Logger::LogOut::~LogOut ( )
inlinevirtual

Definition at line 118 of file LoggerTests.cpp.

Member Function Documentation

std::string Logger::LogOut::getDate ( void  )
inline

Definition at line 149 of file LoggerTests.cpp.

std::string Logger::LogOut::getFmtDate ( )
inlineprotected

Definition at line 168 of file LoggerTests.cpp.

void Logger::LogOut::header ( int  level)
inlinevirtual

Message header appender function.

Subclasses of this class should override this operation, and this function should be defined to append some header to the log messages.

Reimplemented from coil::log_stream< _CharT, _Traits >.

Definition at line 138 of file LoggerTests.cpp.

virtual std::string& Logger::LogOut::prefix ( std::string &  prefix,
int  level 
)
inlinevirtual

Definition at line 120 of file LoggerTests.cpp.

void Logger::LogOut::setDateFormat ( const char *  format)
inline

Definition at line 134 of file LoggerTests.cpp.

void Logger::LogOut::setName ( const char *  name)
inline

Definition at line 163 of file LoggerTests.cpp.

Member Data Documentation

std::string Logger::LogOut::m_dateFormat
protected

Definition at line 183 of file LoggerTests.cpp.

std::string Logger::LogOut::m_name
protected

Definition at line 182 of file LoggerTests.cpp.


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


openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:01