/*=========================================================================

 medInria

 Copyright (c) INRIA 2013 - 2018. All rights reserved.
 See LICENSE.txt for details.
 
  This software is distributed WITHOUT ANY WARRANTY; without even
  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  PURPOSE.

=========================================================================*/

#include <itkLogForwarder.h>



#include <dtkLog/dtkLog.h>

namespace itk {


void LogForwarder::DisplayText( const char* t)
{
    dtkDebug() << t;
}

void LogForwarder::DisplayDebugText( const char *t )
{
    dtkDebug() << t;
}

void LogForwarder::DisplayGenericOutputText( const char *t )
{
    dtkDebug() << t;
}

void LogForwarder::DisplayWarningText( const char *t )
{
    dtkWarn() << t;
}

void LogForwarder::DisplayErrorText( const char *t )
{
    dtkError() << t;
}

LogForwarder::LogForwarder()
{
    //set the default outputwindow to be our forwarder
    itk::OutputWindow::SetInstance(this);
}

LogForwarder::~LogForwarder()
{

}

void LogForwarder::PrintSelf( std::ostream& os, Indent indent ) const
{
    Superclass::PrintSelf(os, indent);
}

} // end namespace itk
