~x2go/x2go/x2goclient_build-main

808 by Mihai Moldovan
general: move *.cpp and *.h files to src/ and *.ts files to src/i18n/.
1
/**************************************************************************
1906 by Mihai Moldovan
misc: pre-release copyright update.
2
*   Copyright (C) 2005-2020 by Oleksandr Shneyder                         *
3
*                              <o.shneyder@phoca-gmbh.de>                 *
808 by Mihai Moldovan
general: move *.cpp and *.h files to src/ and *.ts files to src/i18n/.
4
*                                                                         *
5
*   This program is free software; you can redistribute it and/or modify  *
6
*   it under the terms of the GNU General Public License as published by  *
7
*   the Free Software Foundation; either version 2 of the License, or     *
8
*   (at your option) any later version.                                   *
9
*   This program is distributed in the hope that it will be useful,       *
10
*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12
*   GNU General Public License for more details.                          *
13
*                                                                         *
14
*   You should have received a copy of the GNU General Public License     *
1736 by Mihai Moldovan
misc: change http:// to https:// where appropriate, but in actual code and translation files for now.
15
*   along with this program.  If not, see <https://www.gnu.org/licenses/>. *
808 by Mihai Moldovan
general: move *.cpp and *.h files to src/ and *.ts files to src/i18n/.
16
***************************************************************************/
17
18
#include "x2gologdebug.h"
19
#include "x2goclientconfig.h"
20
#ifdef LOGFILE
21
#include <QDir>
22
X2goLogDebug::X2goLogDebug():QTextStream()
23
{
24
    logFile.setFileName(LOGFILE);
25
    if(logFile.open(QIODevice::WriteOnly|QIODevice::Text|QIODevice::Append))
26
    {
27
          setDevice(&logFile);
28
    }
29
}
30
31
X2goLogDebug::~X2goLogDebug()
32
{
33
 	logFile.close();
34
}
35
#endif