release
[tango-nonfree.git] / lib / cpp / server / coutappender.h
blob6814289f34f55bbd939dde875440bec32d4e39cf
1 /*
2 * Copyright (C) : 2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015
3 * European Synchrotron Radiation Facility
4 * BP 220, Grenoble 38043
5 * FRANCE
7 * This file is part of Tango.
9 * Tango is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU Lesser General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
14 * Tango is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public License
20 * along with Tango. If not, see <http://www.gnu.org/licenses/>.
22 * coutappender.h
24 * by NL - SOLEIL - 01/2003.
26 * $Revision: 27410 $
30 #ifndef _COUT_APPENDER_H_
31 #define _COUT_APPENDER_H_
33 #if defined(TANGO_HAS_LOG4TANGO)
35 namespace Tango {
37 class CoutAppender : public log4tango::LayoutAppender
39 public:
40 /**
42 **/
43 CoutAppender (const std::string& name);
45 /**
47 **/
48 virtual ~CoutAppender ();
50 /**
52 **/
53 inline virtual bool reopen() {
54 return true;
57 /**
59 **/
60 inline virtual void close() {
61 //no-op
64 protected:
65 /**
67 **/
68 virtual int _append (const log4tango::LoggingEvent& event);
71 } // namespace tango
73 #endif // _COUT_APPENDER_H_
75 #endif // TANGO_HAS_LOG4TANGO