X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FLogger%2FSALOME_Logger_Server.hxx;h=9b122b6044e592a9a86b7c934256383d9e118b69;hb=20c132438f5b8f7337bf35272989b10eb003d71c;hp=7c61a120031df6d21f537f465576fa76de75d59b;hpb=9749fc1db72bd80e278405114b05ffc69b5031da;p=modules%2Fkernel.git diff --git a/src/Logger/SALOME_Logger_Server.hxx b/src/Logger/SALOME_Logger_Server.hxx index 7c61a1200..9b122b604 100644 --- a/src/Logger/SALOME_Logger_Server.hxx +++ b/src/Logger/SALOME_Logger_Server.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 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 @@ -6,7 +6,7 @@ // 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 @@ -47,21 +47,26 @@ # 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(); @@ -73,7 +78,6 @@ private: bool m_putIntoFile; //ofstream class specialized for disk file output std::ofstream m_outputFile; - //synchronisation object static omni_mutex myLock;