2005-02-01 00:54:06 +00:00
|
|
|
// Berkeley Open Infrastructure for Network Computing
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2005 University of California
|
|
|
|
//
|
|
|
|
// This is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation;
|
|
|
|
// either version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This software is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// To view the GNU Lesser General Public License visit
|
|
|
|
// http://www.gnu.org/copyleft/lesser.html
|
|
|
|
// or write to the Free Software Foundation, Inc.,
|
2007-10-09 11:35:47 +00:00
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2005-02-01 00:54:06 +00:00
|
|
|
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
|
|
#pragma implementation "LogBOINC.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "stdwx.h"
|
|
|
|
#include "BOINCGUIApp.h"
|
|
|
|
#include "diagnostics.h"
|
|
|
|
#include "LogBOINC.h"
|
|
|
|
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
wxLogBOINC::wxLogBOINC() {
|
2005-02-01 00:54:06 +00:00
|
|
|
m_fp = stdout;
|
|
|
|
}
|
|
|
|
|
2005-04-07 07:04:50 +00:00
|
|
|
void wxLogBOINC::DoLogString(const wxChar *szString, time_t t) {
|
2005-02-01 00:54:06 +00:00
|
|
|
diagnostics_cycle_logs();
|
2005-04-27 01:34:35 +00:00
|
|
|
#ifdef __WXMSW__
|
|
|
|
wxString strDebug = szString;
|
|
|
|
strDebug += wxT("\r\n");
|
|
|
|
::OutputDebugString(strDebug.c_str());
|
|
|
|
#endif
|
2005-02-01 00:54:06 +00:00
|
|
|
wxLogStderr::DoLogString(szString, t);
|
|
|
|
}
|
|
|
|
|
2005-02-11 04:46:01 +00:00
|
|
|
const char *BOINC_RCSID_4f7bf42814="$Id$";
|