LogRecord objects are used to pass logging requests between the logging framework and individual log Handlers.
More...
#include <src/main/decaf/util/logging/LogRecord.h>
LogRecord objects are used to pass logging requests between the logging framework and individual log Handlers.
When a LogRecord is passed into the logging framework it logically belongs to the framework and should no longer be used or updated by the client application.
- Since
- 1.0
◆ LogRecord()
decaf::util::logging::LogRecord::LogRecord |
( |
| ) |
|
◆ ~LogRecord()
virtual decaf::util::logging::LogRecord::~LogRecord |
( |
| ) |
|
|
virtual |
◆ getLevel()
Level decaf::util::logging::LogRecord::getLevel |
( |
| ) |
const |
|
inline |
Get Level of this log record.
- Returns
- Level enumeration value.
◆ getLoggerName()
const std::string & decaf::util::logging::LogRecord::getLoggerName |
( |
| ) |
const |
|
inline |
Gets the Source Logger's Name.
- Returns
- the source loggers name
◆ getMessage()
const std::string & decaf::util::logging::LogRecord::getMessage |
( |
| ) |
const |
|
inline |
Gets the Message to be Logged.
- Returns
- the source logger's message
◆ getSourceFile()
const std::string & decaf::util::logging::LogRecord::getSourceFile |
( |
| ) |
const |
|
inline |
Gets the Source Log File name.
- Returns
- the source loggers name
◆ getSourceFunction()
const std::string & decaf::util::logging::LogRecord::getSourceFunction |
( |
| ) |
const |
|
inline |
Gets the name of the function where this log was logged.
- Returns
- the source logger's message
◆ getSourceLine()
unsigned int decaf::util::logging::LogRecord::getSourceLine |
( |
| ) |
const |
|
inline |
Gets the Source Log line number.
- Returns
- the source loggers line number
◆ getThrown()
Gets any Throwable associated with this LogRecord.
- Returns
- point to a Throwable instance or Null.
◆ getTimestamp()
long long decaf::util::logging::LogRecord::getTimestamp |
( |
| ) |
const |
|
inline |
Gets the time in mills that this message was logged.
- Returns
- UTC time in milliseconds
◆ getTreadId()
long long decaf::util::logging::LogRecord::getTreadId |
( |
| ) |
const |
|
inline |
Gets the Thread Id where this Log was created.
- Returns
- the source loggers line number
◆ setLevel()
void decaf::util::logging::LogRecord::setLevel |
( |
Level | value | ) |
|
|
inline |
Set the Level of this Log Record.
- Parameters
-
value | Level Enumeration Value |
◆ setLoggerName()
void decaf::util::logging::LogRecord::setLoggerName |
( |
const std::string & | loggerName | ) |
|
|
inline |
Sets the Source Logger's Name.
- Parameters
-
loggerName | the source loggers name |
◆ setMessage()
void decaf::util::logging::LogRecord::setMessage |
( |
const std::string & | message | ) |
|
|
inline |
Sets the Message to be Logged.
- Parameters
-
message | the source loggers message |
◆ setSourceFile()
void decaf::util::logging::LogRecord::setSourceFile |
( |
const std::string & | sourceFile | ) |
|
|
inline |
Sets the Source Log File Name.
- Parameters
-
sourceFile | the source loggers name |
◆ setSourceFunction()
void decaf::util::logging::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 |
◆ setSourceLine()
void decaf::util::logging::LogRecord::setSourceLine |
( |
unsigned int | sourceLine | ) |
|
|
inline |
Sets the Source Log line number.
- Parameters
-
sourceLine | the source logger's line number |
◆ setThrown()
Sets the Throwable associated with this LogRecord, the pointer becomes the property of this instance of the LogRecord and will be deleted when the record is destroyed.
- Parameters
-
thrown | A pointer to a Throwable that will be associated with this record. |
◆ setTimestamp()
void decaf::util::logging::LogRecord::setTimestamp |
( |
long long | timeStamp | ) |
|
|
inline |
Sets the time in mills that this message was logged.
- Parameters
-
timeStamp | UTC Time in Milliseconds. |
◆ setTreadId()
void decaf::util::logging::LogRecord::setTreadId |
( |
long long | threadId | ) |
|
|
inline |
Sets the Thread Id where this Log was created.
- Parameters
-
threadId | the source logger's line number |
The documentation for this class was generated from the following file: