activemq::logger::LogRecord Class Reference

#include <LogRecord.h>

List of all members.

Public Member Functions

 LogRecord ()
virtual ~LogRecord ()
Level getLevel (void) const
void setLevel (Level value)
const std::string & getLoggerName (void) const
void setLoggerName (const std::string &loggerName)
const std::string & getSourceFile (void) const
void setSourceFile (const std::string &loggerName)
unsigned long getSourceLine (void) const
void setSourceLine (long sourceLine)
const std::string & getMessage (void) const
void setMessage (const std::string &message)
const std::string & getSourceFunction (void) const
void setSourceFunction (const std::string &functionName)
unsigned long getTimestamp (void) const
void setTimestamp (long timeStamp)
unsigned long getTreadId (void) const
void setTreadId (long threadId)

Private Attributes

Level level
std::string loggerName
std::string sourceFile
unsigned long sourceLine
std::string message
std::string functionName
unsigned long timeStamp
unsigned long threadId


Constructor & Destructor Documentation

activemq::logger::LogRecord::LogRecord  )  [inline]
 

virtual activemq::logger::LogRecord::~LogRecord  )  [inline, virtual]
 


Member Function Documentation

Level activemq::logger::LogRecord::getLevel void   )  const [inline]
 

Get Level of this log record

Returns:
Level enumeration value.

const std::string& activemq::logger::LogRecord::getLoggerName void   )  const [inline]
 

Gets the Source Logger's Name

Returns:
the source loggers name

const std::string& activemq::logger::LogRecord::getMessage void   )  const [inline]
 

Gets the Message to be Logged

Returns:
the source logger's message

const std::string& activemq::logger::LogRecord::getSourceFile void   )  const [inline]
 

Gets the Source Log File name

Returns:
the source loggers name

const std::string& activemq::logger::LogRecord::getSourceFunction void   )  const [inline]
 

Gets the name of the function where this log was logged

Returns:
the source logger's message

unsigned long activemq::logger::LogRecord::getSourceLine void   )  const [inline]
 

Gets the Source Log line number

Returns:
the source loggers line number

unsigned long activemq::logger::LogRecord::getTimestamp void   )  const [inline]
 

Gets the time in mills that this message was logged.

Returns:
UTC time in milliseconds

unsigned long activemq::logger::LogRecord::getTreadId void   )  const [inline]
 

Gets the Thread Id where this Log was created

Returns:
the source loggers line number

void activemq::logger::LogRecord::setLevel Level  value  )  [inline]
 

Set the Level of this Log Record

Parameters:
value Level Enumeration Value

void activemq::logger::LogRecord::setLoggerName const std::string &  loggerName  )  [inline]
 

Sets the Source Logger's Name

Parameters:
loggerName the source loggers name

void activemq::logger::LogRecord::setMessage const std::string &  message  )  [inline]
 

Sets the Message to be Logged

Parameters:
message the source loggers message

void activemq::logger::LogRecord::setSourceFile const std::string &  loggerName  )  [inline]
 

Sets the Source Log File Name

Parameters:
loggerName the source loggers name

void activemq::logger::LogRecord::setSourceFunction const std::string &  functionName  )  [inline]
 

Sets the name of the function where this log was logged

Parameters:
functionName the source of the log

void activemq::logger::LogRecord::setSourceLine long  sourceLine  )  [inline]
 

Sets the Source Log line number

Parameters:
sourceLine the source logger's line number

void activemq::logger::LogRecord::setTimestamp long  timeStamp  )  [inline]
 

Sets the time in mills that this message was logged.

Parameters:
timeStamp UTC Time in Milliseconds.

void activemq::logger::LogRecord::setTreadId long  threadId  )  [inline]
 

Sets the Thread Id where this Log was created

Parameters:
threadId the source logger's line number


Member Data Documentation

std::string activemq::logger::LogRecord::functionName [private]
 

Level activemq::logger::LogRecord::level [private]
 

std::string activemq::logger::LogRecord::loggerName [private]
 

std::string activemq::logger::LogRecord::message [private]
 

std::string activemq::logger::LogRecord::sourceFile [private]
 

unsigned long activemq::logger::LogRecord::sourceLine [private]
 

unsigned long activemq::logger::LogRecord::threadId [private]
 

unsigned long activemq::logger::LogRecord::timeStamp [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Aug 3 18:03:33 2006 for activemq-cpp by  doxygen 1.4.5