summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/main.cpp')
-rw-r--r--rbutil/rbutilqt/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index cac93395fe..160a31ba0e 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -40,14 +40,14 @@ Q_IMPORT_PLUGIN(AccessibleFactory)
int main( int argc, char ** argv ) {
QApplication app( argc, argv );
ConsoleAppender* consoleAppender = new ConsoleAppender();
- consoleAppender->setFormat("[%f:%i %L] %m\n");
- Logger::registerAppender(consoleAppender);
+ consoleAppender->setFormat("[%{file}:%{line} %{type}] %{message}\n");
+ cuteLoggerInstance()->registerAppender(consoleAppender);
SysTrace::rotateTrace();
QString tracefile = QDir::tempPath() + "/rbutil-trace.log";
FileAppender* fileAppender = new FileAppender();
- fileAppender->setFormat("[%f:%i %L] %m\n");
+ fileAppender->setFormat("[%{file}:%{line} %{type}] %{message}\n");
fileAppender->setFileName(tracefile);
- Logger::registerAppender(fileAppender);
+ cuteLoggerInstance()->registerAppender(fileAppender);
LOG_INFO() << "Starting trace at" << QDateTime::currentDateTime().toString(Qt::ISODate);
#if defined(Q_OS_MAC)