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

#include <tango/server/TangoRollingFileAppender.h>

namespace Tango
{
TangoRollingFileAppender::TangoRollingFileAppender(const std::string &name,
                                                   const std::string &fileName,
                                                   size_t maxFileSize) :
    log4tango::RollingFileAppender(name, fileName, maxFileSize * 1024)
{
    // no-op
}

TangoRollingFileAppender::~TangoRollingFileAppender()
{
    // no-op
}

bool TangoRollingFileAppender::isValid() const
{
    return _fd >= 0;
}

} // namespace Tango
