@@ -76,9 +76,10 @@ protected:
virtual std::string logPrefix() const = 0;
LogMessage _log(const char *file, unsigned int line,
- LogSeverity severity);
+ LogSeverity severity) const;
LogMessage _log(const char *file, unsigned int line,
- const LogCategory &category, LogSeverity severity);
+ const LogCategory &category,
+ LogSeverity severity) const;
};
LogMessage _log(const char *file, unsigned int line, LogSeverity severity);
@@ -506,7 +506,7 @@ Loggable::~Loggable()
* \return A log message
*/
LogMessage Loggable::_log(const char *fileName, unsigned int line,
- LogSeverity severity)
+ LogSeverity severity) const
{
LogMessage msg(fileName, line, severity);
@@ -527,7 +527,8 @@ LogMessage Loggable::_log(const char *fileName, unsigned int line,
* \return A log message
*/
LogMessage Loggable::_log(const char *fileName, unsigned int line,
- const LogCategory &category, LogSeverity severity)
+ const LogCategory &category,
+ LogSeverity severity) const
{
LogMessage msg(fileName, line, category, severity);