ProtoZed  awesome branch
A simple but powerful game framework
Classes | Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
PZ::Log Class Reference
Inheritance diagram for PZ::Log:
PZ::NonCopyable PZ::EventHandler

Classes

class  MessageEvent
 

Public Types

enum  Type { LT_INFO, LT_ERROR, LT_WARNING, LT_DEBUG }
 

Public Member Functions

void SetConsoleOutput (bool enable)
 
bool IsConsoleOutputEnabled () const
 
bool IsFileOutputEnabled () const
 
void SetTimestamp (bool enable)
 
bool IsTimestampEnabled () const
 
void Message (Type type, const std::string &message)
 
void Info (const std::string &message)
 
void Error (const std::string &message)
 
void Warning (const std::string &message)
 
void Debug (const std::string &message)
 
- Public Member Functions inherited from PZ::EventHandler
 EventHandler ()
 
virtual ~EventHandler ()
 
bool SubscribeTo (EventHandler &handler)
 
bool UnsubscribeTo (EventHandler &handler)
 
template<class T , class EventT >
bool RegisterEvent (T *obj, void(T::*memFn)(EventT &))
 
template<class T , class EventT >
bool UnregisterEvent (T *obj, void(T::*memFn)(EventT &))
 
void HandleEvent (const Event &e)
 
void EmitEvent (const Event &e) const
 

Static Public Member Functions

static void Message (const std::string &name, Type type, const std::string &message)
 
static void Info (const std::string &name, const std::string &message)
 
static void Error (const std::string &name, const std::string &message)
 
static void Warning (const std::string &name, const std::string &message)
 
static void Debug (const std::string &name, const std::string &message)
 

Friends

class LogManager
 

Additional Inherited Members

- Protected Member Functions inherited from PZ::NonCopyable
 NonCopyable ()
 

Member Enumeration Documentation

Enumerator:
LT_INFO 
LT_ERROR 
LT_WARNING 
LT_DEBUG 

Member Function Documentation

void PZ::Log::Debug ( const std::string &  message)
inline
static void PZ::Log::Debug ( const std::string &  name,
const std::string &  message 
)
inlinestatic
void PZ::Log::Error ( const std::string &  message)
inline
static void PZ::Log::Error ( const std::string &  name,
const std::string &  message 
)
inlinestatic
void PZ::Log::Info ( const std::string &  message)
inline
static void PZ::Log::Info ( const std::string &  name,
const std::string &  message 
)
inlinestatic
bool PZ::Log::IsConsoleOutputEnabled ( ) const
bool PZ::Log::IsFileOutputEnabled ( ) const
bool PZ::Log::IsTimestampEnabled ( ) const
void PZ::Log::Message ( Type  type,
const std::string &  message 
)
static void PZ::Log::Message ( const std::string &  name,
Type  type,
const std::string &  message 
)
inlinestatic
void PZ::Log::SetConsoleOutput ( bool  enable)
void PZ::Log::SetTimestamp ( bool  enable)
void PZ::Log::Warning ( const std::string &  message)
inline
static void PZ::Log::Warning ( const std::string &  name,
const std::string &  message 
)
inlinestatic

Friends And Related Function Documentation

friend class LogManager
friend

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