Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | Friends
cat::Logging Class Reference

#include <Logging.hpp>

Inheritance diagram for cat::Logging:

List of all members.

Public Member Functions

void EnableServiceMode (const char *service_name)
void Initialize (EventSeverity min_severity=LVL_INANE)
CAT_INLINE bool IsService ()
void ReadSettings ()
CAT_INLINE void SetLogCallback (LogCallback cb)
CAT_INLINE void SetThreshold (EventSeverity min_severity)
void Shutdown ()
void WriteServiceLog (EventSeverity severity, const char *line)

Public Attributes

int _log_threshold

Protected Attributes

bool _service

Private Member Functions

 CAT_SINGLETON (Logging)
void LogEvent (Recorder *recorder)

Private Attributes

LogCallback _callback

Friends

class Recorder

Detailed Description

Definition at line 69 of file Logging.hpp.


Member Function Documentation

cat::Logging::CAT_SINGLETON ( Logging  ) [private]
void cat::Logging::EnableServiceMode ( const char *  service_name)
void cat::Logging::Initialize ( EventSeverity  min_severity = LVL_INANE)
CAT_INLINE bool cat::Logging::IsService ( ) [inline]

Definition at line 94 of file Logging.hpp.

References _service.

{ return _service; }
void cat::Logging::LogEvent ( Recorder recorder) [private]
void cat::Logging::ReadSettings ( )
CAT_INLINE void cat::Logging::SetLogCallback ( LogCallback  cb) [inline]

Definition at line 100 of file Logging.hpp.

References _callback.

{ _callback = cb; }
CAT_INLINE void cat::Logging::SetThreshold ( EventSeverity  min_severity) [inline]

Definition at line 83 of file Logging.hpp.

References _log_threshold.

{ _log_threshold = min_severity; }
void cat::Logging::Shutdown ( )
void cat::Logging::WriteServiceLog ( EventSeverity  severity,
const char *  line 
)

Friends And Related Function Documentation

friend class Recorder [friend]

Definition at line 75 of file Logging.hpp.


Member Data Documentation

Definition at line 73 of file Logging.hpp.

Referenced by SetLogCallback().

Definition at line 79 of file Logging.hpp.

Referenced by SetThreshold().

Definition at line 88 of file Logging.hpp.

Referenced by IsService().


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net