Skip to content

Commit

Permalink
Moved app output logs into $HOME/EMStudio/applogs, and increased the …
Browse files Browse the repository at this point in the history
…rollover number from 5, to 20 logs
  • Loading branch information
Michael Carpenter authored and Michael Carpenter committed Nov 21, 2013
1 parent 3c6418a commit e630af8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,17 @@ int main(int argc, char *argv[])
if (!appDir.cd("EMStudio"))
{
appDir.mkdir("EMStudio");
appDir.cd("EMStudio");
}
if (!appDir.cd("applogs"))
{
appDir.mkdir("applogs");
}
}
const QString sLogPath(QDir(appDataDir + "/EMStudio").filePath("log.txt"));
const QString sLogPath(QDir(appDataDir + "/EMStudio/applogs").filePath("log.txt"));

QsLogging::DestinationPtr fileDestination(
QsLogging::DestinationFactory::MakeFileDestination(sLogPath, true, 0, 5) );
QsLogging::DestinationFactory::MakeFileDestination(sLogPath, true, 0, 100) );
QsLogging::DestinationPtr debugDestination(
QsLogging::DestinationFactory::MakeDebugOutputDestination() );
logger.addDestination(debugDestination);
Expand Down

0 comments on commit e630af8

Please sign in to comment.