Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
DefaultLog (QString requestingPluginId) | |
~DefaultLog () | |
void | add (Level level, QString message) |
Adds a new message with the specified level to the log. More... | |
void | add (QString message) |
Adds a new message with LOGINFO level to the log. More... | |
LogEntry | getNextEntry () |
Returns the next unread message in the log queue. More... | |
QList< LogEntry > | getUnreadEntries () |
Returns a list of all unread messages in the log. More... | |
bool | hasUnreadEntries () |
Returns true if there are unread messages in the log. More... | |
Public Member Functions inherited from Logger::Log | |
virtual | ~Log () |
void | debug (const QString &message) |
A convenience function that logs a new debug message to the log. More... | |
void | error (const QString &message) |
A convenience function that adds a new error message to the log. More... | |
void | info (const QString &message) |
A convenience function that adds a new info message to the log. More... | |
void | warning (const QString &message) |
A convenience function that adds a new warning message to the log. More... | |
Private Attributes | |
int | loggedEntriesSeen |
QString | pluginId |
Static Private Attributes | |
static QMutex | logAccess |
static QVector< LogEntry > | loggedEvents |
Additional Inherited Members | |
Public Types inherited from Logger::Log | |
enum | Level { LOGDEBUG , LOGERROR , LOGWARNING , LOGINFO } |
The log levels to which each message can belong. More... | |
Signals inherited from Logger::Log | |
void | newLogEntry () |
Emitted when a new log entry (or several) have been added to the log. More... | |
Static Public Member Functions inherited from Logger::Log | |
static Log * | getLogger (QString requestingPluginId) |
Returns an instance of the default logger that will be used to log events for the specified plugin. More... | |
Logger::DefaultLog::DefaultLog | ( | QString | requestingPluginId | ) |
Logger::DefaultLog::~DefaultLog | ( | ) |
|
virtual |
Adds a new message with the specified level to the log.
The plug-in id that will be associated with the message is determined by the Log object instance.
level | The log level of the message |
message | The message to add |
Implements Logger::Log.
|
virtual |
Adds a new message with LOGINFO level to the log.
The plug-in id that will be associated with the message is determined by the Log object instance.
message | The message to add |
Implements Logger::Log.
|
virtual |
Returns the next unread message in the log queue.
This also advances the pointer of the last read message by one.
If there are no unread entries, returns an empty (default) LogEntry.
Implements Logger::Log.
|
virtual |
Returns a list of all unread messages in the log.
If there are no unread messages the list is empty.
Implements Logger::Log.
|
virtual |
Returns true if there are unread messages in the log.
Implements Logger::Log.
|
staticprivate |
|
private |
|
staticprivate |
|
private |