-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library 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.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
# define LOGGER_EXPORT
#endif
-#ifdef WNT
+#ifdef WIN32
#pragma warning(disable:4275) // Disable warning interface non dll
#endif
+namespace KERNEL
+{
+ LOGGER_EXPORT SALOME_Logger::Logger_ptr getLoggerServantSA();
+}
+
class LOGGER_EXPORT Logger :
public POA_SALOME_Logger::Logger
{
public:
//constructor w/o parameters
//all messages will be put into terminal via cout
- Logger();
+ Logger();
//constructor with parameter, filename is output file
//all messages will be put into special file passed as parameter
Logger(const char *filename);
- virtual ~Logger();
+ virtual ~Logger();
//put message into one special place for all servers
void putMessage(const char* message);
void ping();
bool m_putIntoFile;
//ofstream class specialized for disk file output
std::ofstream m_outputFile;
-
//synchronisation object
static omni_mutex myLock;