Logo Search packages:      
Sourcecode: pan version File versions  Download package

Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes

pan::Log Class Reference

#include <log.h>

List of all members.

Classes

struct  Entry
struct  Listener

Public Types

typedef std::deque< Entryentries_t
enum  Severity { PAN_SEVERITY_INFO = 1, PAN_SEVERITY_ERROR = 2, PAN_SEVERITY_URGENT = (1<<10) }

Public Member Functions

void add (Severity, const char *)
void add_listener (Listener *l)
void add_va (Severity, const char *,...)
void clear ()
const entries_t & get_entries () const
void remove_listener (Listener *l)

Static Public Member Functions

static void add_err (const char *s)
static void add_err_va (const char *,...)
static void add_info (const char *s)
static void add_info_va (const char *,...)
static void add_urgent (const char *s)
static void add_urgent_va (const char *,...)
static Logget ()

Private Types

typedef std::set< Listener * > listeners_t

Private Member Functions

void fire_cleared ()
void fire_entry_added (const Entry &e)

Private Attributes

entries_t _entries
listeners_t _listeners

Detailed Description

Logs information and error messages that that the user should see.

Definition at line 33 of file log.h.


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

Generated by  Doxygen 1.6.0   Back to index