1
// Berkeley Open Infrastructure for Network Computing
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2005 University of California
5
// This is free software; you can redistribute it and/or
6
// modify it under the terms of the GNU Lesser General Public
7
// License as published by the Free Software Foundation;
8
// either version 2.1 of the License, or (at your option) any later version.
10
// This software is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
// See the GNU Lesser General Public License for more details.
15
// To view the GNU Lesser General Public License visit
16
// http://www.gnu.org/copyleft/lesser.html
17
// or write to the Free Software Foundation, Inc.,
18
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
#if defined(__GNUG__) && !defined(__APPLE__)
21
#pragma implementation "LogBOINC.h"
25
#include "BOINCGUIApp.h"
26
#include "diagnostics.h"
30
wxLogBOINC::wxLogBOINC() {
34
void wxLogBOINC::DoLogString(const wxChar *szString, time_t t) {
35
diagnostics_cycle_logs();
37
wxString strDebug = szString;
38
strDebug += wxT("\r\n");
39
::OutputDebugString(strDebug.c_str());
41
wxLogStderr::DoLogString(szString, t);
44
const char *BOINC_RCSID_4f7bf42814="$Id: LogBOINC.cpp 13804 2007-10-09 11:35:47Z fthomas $";
1
// This file is part of BOINC.
2
// http://boinc.berkeley.edu
3
// Copyright (C) 2008 University of California
5
// BOINC is free software; you can redistribute it and/or modify it
6
// under the terms of the GNU Lesser General Public License
7
// as published by the Free Software Foundation,
8
// either version 3 of the License, or (at your option) any later version.
10
// BOINC is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
// See the GNU Lesser General Public License for more details.
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
18
#if defined(__GNUG__) && !defined(__APPLE__)
19
#pragma implementation "LogBOINC.h"
23
#include "BOINCGUIApp.h"
24
#include "diagnostics.h"
28
wxLogBOINC::wxLogBOINC() {
32
void wxLogBOINC::DoLogString(const wxChar *szString, time_t t) {
33
diagnostics_cycle_logs();
35
wxString strDebug = szString;
36
strDebug += wxT("\r\n");
37
::OutputDebugString(strDebug.c_str());
39
wxLogStderr::DoLogString(szString, t);