Changeset 803 for Vago/trunk


Ignore:
Timestamp:
Apr 11, 2013, 12:01:56 AM (12 years ago)
Author:
s10k
Message:

Vago: fixed log in mac (was writting it to the bundle)

Location:
Vago/trunk/Vago
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Vago/trunk/Vago/logger.cpp

    r771 r803  
    11#include "logger.h"
    22
    3 Logger::Logger()
     3Logger::Logger(QString appDir)
    44{
    5      myLogFile = new QFile(GlobalVars::AppLogName);
     5     myLogFile = new QFile(appDir+"/"+GlobalVars::AppLogName);
    66
    77     if (!myLogFile->open(QIODevice::WriteOnly | QIODevice::Text)){ //open to write
  • Vago/trunk/Vago/logger.h

    r771 r803  
    1010{
    1111public:
    12     Logger();
     12    Logger(QString  appDir);
    1313    ~Logger();
    1414    void writeString(QString strToWrite);
  • Vago/trunk/Vago/mainwindow.cpp

    r802 r803  
    1212    this->AppDir=getOSIndependentAppPath();
    1313
    14     this->myLogger = new Logger(); //start logger
     14    this->myLogger = new Logger(this->AppDir); //start logger
    1515
    1616    this->myLogger->writeString("Detected AppDir: "+this->AppDir);
Note: See TracChangeset for help on using the changeset viewer.