~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to clientgui/LogBOINC.cpp

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Berkeley Open Infrastructure for Network Computing
2
 
// http://boinc.berkeley.edu
3
 
// Copyright (C) 2005 University of California
4
 
//
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.
9
 
//
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.
14
 
//
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
19
 
 
20
 
#if defined(__GNUG__) && !defined(__APPLE__)
21
 
#pragma implementation "LogBOINC.h"
22
 
#endif
23
 
 
24
 
#include "stdwx.h"
25
 
#include "BOINCGUIApp.h"
26
 
#include "diagnostics.h"
27
 
#include "LogBOINC.h"
28
 
 
29
 
 
30
 
wxLogBOINC::wxLogBOINC() {
31
 
    m_fp = stdout;
32
 
}
33
 
 
34
 
void wxLogBOINC::DoLogString(const wxChar *szString, time_t t) {
35
 
    diagnostics_cycle_logs();
36
 
#ifdef __WXMSW__
37
 
    wxString strDebug = szString;
38
 
    strDebug += wxT("\r\n");
39
 
    ::OutputDebugString(strDebug.c_str());
40
 
#endif
41
 
    wxLogStderr::DoLogString(szString, t);
42
 
}
43
 
 
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
 
4
//
 
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.
 
9
//
 
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.
 
14
//
 
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/>.
 
17
 
 
18
#if defined(__GNUG__) && !defined(__APPLE__)
 
19
#pragma implementation "LogBOINC.h"
 
20
#endif
 
21
 
 
22
#include "stdwx.h"
 
23
#include "BOINCGUIApp.h"
 
24
#include "diagnostics.h"
 
25
#include "LogBOINC.h"
 
26
 
 
27
 
 
28
wxLogBOINC::wxLogBOINC() {
 
29
    m_fp = stdout;
 
30
}
 
31
 
 
32
void wxLogBOINC::DoLogString(const wxChar *szString, time_t t) {
 
33
    diagnostics_cycle_logs();
 
34
#ifdef __WXMSW__
 
35
    wxString strDebug = szString;
 
36
    strDebug += wxT("\r\n");
 
37
    ::OutputDebugString(strDebug.c_str());
 
38
#endif
 
39
    wxLogStderr::DoLogString(szString, t);
 
40
}
 
41