17#ifndef _DECAF_UTIL_LOGGING_LOGRECORD_H_
18#define _DECAF_UTIL_LOGGING_LOGRECORD_H_
48 std::string loggerName;
51 std::string sourceFile;
54 unsigned int sourceLine;
60 std::string functionName;
69 std::auto_ptr<decaf::lang::Throwable> thrown;
106 this->loggerName = loggerName;
122 this->sourceFile = sourceFile;
138 this->sourceLine = sourceLine;
154 this->message = message;
170 this->functionName = functionName;
184 this->timeStamp = timeStamp;
200 this->threadId = threadId;
208 return this->thrown.get();
220 this->thrown.reset( thrown );
This class represents an error that has occurred.
Definition Throwable.h:44
The Level class defines a set of standard logging levels that can be used to control logging output.
Definition Level.h:56
const std::string & getMessage() const
Gets the Message to be Logged.
Definition LogRecord.h:145
void setLoggerName(const std::string &loggerName)
Sets the Source Logger's Name.
Definition LogRecord.h:105
Level getLevel() const
Get Level of this log record.
Definition LogRecord.h:81
void setSourceFile(const std::string &sourceFile)
Sets the Source Log File Name.
Definition LogRecord.h:121
void setTreadId(long long threadId)
Sets the Thread Id where this Log was created.
Definition LogRecord.h:199
void setThrown(decaf::lang::Throwable *thrown)
Sets the Throwable associated with this LogRecord, the pointer becomes the property of this instance ...
Definition LogRecord.h:219
const std::string & getSourceFile() const
Gets the Source Log File name.
Definition LogRecord.h:113
void setSourceFunction(const std::string &functionName)
Sets the name of the function where this log was logged.
Definition LogRecord.h:169
void setTimestamp(long long timeStamp)
Sets the time in mills that this message was logged.
Definition LogRecord.h:183
unsigned int getSourceLine() const
Gets the Source Log line number.
Definition LogRecord.h:129
const std::string & getSourceFunction() const
Gets the name of the function where this log was logged.
Definition LogRecord.h:161
void setMessage(const std::string &message)
Sets the Message to be Logged.
Definition LogRecord.h:153
long long getTreadId() const
Gets the Thread Id where this Log was created.
Definition LogRecord.h:191
void setSourceLine(unsigned int sourceLine)
Sets the Source Log line number.
Definition LogRecord.h:137
decaf::lang::Throwable * getThrown() const
Gets any Throwable associated with this LogRecord.
Definition LogRecord.h:207
void setLevel(Level value)
Set the Level of this Log Record.
Definition LogRecord.h:89
long long getTimestamp() const
Gets the time in mills that this message was logged.
Definition LogRecord.h:177
const std::string & getLoggerName() const
Gets the Source Logger's Name.
Definition LogRecord.h:97
#define DECAF_API
Definition Config.h:29
Definition ConsoleHandler.h:28
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25