/*
 * SPDX-FileCopyrightText: 2004 Copyright contributors to the cppTango project
 *
 * SPDX-License-Identifier: LGPL-3.0-or-later
 */

#ifndef TANGO_SERVER_COUTAPPENDER_H
#define TANGO_SERVER_COUTAPPENDER_H

#include <tango/common/log4tango/LayoutAppender.h>

#include <string>

namespace Tango
{

class CoutAppender : public log4tango::LayoutAppender
{
  public:
    /**
     *
     **/
    CoutAppender(const std::string &name);

    /**
     *
     **/
    ~CoutAppender() override;

    /**
     *
     **/
    bool reopen() override
    {
        return true;
    }

    /**
     *
     **/
    void close() override
    {
        // no-op
    }

  protected:
    /**
     *
     **/
    int _append(const log4tango::LoggingEvent &event) override;
};

} // namespace Tango

#endif // TANGO_SERVER_COUTAPPENDER_H
