projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logger: export LogEntry symbols
[quassel.git]
/
src
/
common
/
logger.h
diff --git
a/src/common/logger.h
b/src/common/logger.h
index
7b88078
..
f55590c
100644
(file)
--- a/
src/common/logger.h
+++ b/
src/common/logger.h
@@
-50,11
+50,18
@@
public:
Fatal
};
Fatal
};
- struct LogEntry
+ struct
COMMON_EXPORT
LogEntry
{
QDateTime timeStamp;
LogLevel logLevel;
QString message;
{
QDateTime timeStamp;
LogLevel logLevel;
QString message;
+
+ /**
+ * Gets this log entry in a printable format, with timestamp and log level
+ *
+ * @return the log entry, formatted with timestamp and log level
+ */
+ QString toString() const;
};
/**
};
/**