Cinder  0.9.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cinder::log::LoggerSystem Class Reference

#include <Log.h>

Inherits cinder::log::Logger.

Public Member Functions

 LoggerSystem ()
 
virtual ~LoggerSystem ()
 
void write (const Metadata &meta, const std::string &text) override
 
void setLoggingLevel (Level minLevel)
 
void setTimestampEnabled (bool enable=true)
 
bool isTimestampEnabled () const
 

Protected Member Functions

void writeDefault (std::ostream &stream, const Metadata &meta, const std::string &text)
 

Protected Attributes

Level mMinLevel
 
std::unique_ptr< ImplSysLog > mImpl
 

Detailed Description

LoggerSystem rovides 'system' logging support. Uses syslog on platforms that have it, on MSW uses Windows Event Logging.

Note
Does nothing on WinRT.

Constructor & Destructor Documentation

cinder::log::LoggerSystem::LoggerSystem ( )
cinder::log::LoggerSystem::~LoggerSystem ( )
virtual

Member Function Documentation

void cinder::log::LoggerSystem::write ( const Metadata meta,
const std::string &  text 
)
overridevirtual

Implements cinder::log::Logger.

void cinder::log::LoggerSystem::setLoggingLevel ( Level  minLevel)

Sets the minimum logging level that will trigger a system log.

Note
Setting minLevel below CI_MIN_LOG_LEVEL is pointless; minLevel will act like CI_MIN_LOG_LEVEL.
void cinder::log::Logger::setTimestampEnabled ( bool  enable = true)
inherited
bool cinder::log::Logger::isTimestampEnabled ( ) const
inherited
void cinder::log::Logger::writeDefault ( std::ostream &  stream,
const Metadata meta,
const std::string &  text 
)
protectedinherited

Member Data Documentation

Level cinder::log::LoggerSystem::mMinLevel
protected
std::unique_ptr<ImplSysLog> cinder::log::LoggerSystem::mImpl
protected

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