UtiLite  0.3.1
A lite utilities library
Public Member Functions
ULogEvent Class Reference

#include <ULogger.h>

Inherits UEvent.

List of all members.

Public Member Functions

 ULogEvent (const std::string &msg, int level)
const std::string & getMsg () const
virtual std::string getClassName () const

Detailed Description

This class is used by the ULogger to send logged messages like events. Messages with level over the event level set in ULogger::setEventLevel() are sent like ULogEvent with the message and its level. The default event level of ULogger is kFatal (see ULogger::Level).


Constructor & Destructor Documentation

ULogEvent::ULogEvent ( const std::string &  msg,
int  level 
) [inline]

ULogEvent constructor. Note that to retrieve the message level, use UEvent::getCode().

Parameters:
msgthe message already formatted to a full string.
levelthe severity of the message,
See also:
ULogger::Level.

Member Function Documentation

virtual std::string ULogEvent::getClassName ( ) const [inline, virtual]
Returns:
string "ULogEvent"

Implements UEvent.

const std::string& ULogEvent::getMsg ( ) const [inline]

Get the message from the event.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations Friends Defines