view Resources/Samples/CppHelpers/Logging/OrthancLogger.cpp @ 3460:fbe22748cd9c

added logging OrthancHelpers
author Alain Mazy <alain@mazy.be>
date Tue, 09 Jul 2019 10:30:30 +0200
parents
children
line wrap: on
line source

#include "OrthancLogger.h"
#include "Logging.h"

namespace OrthancHelpers
{

  void OrthancLogger::Trace(const char *message)
  {
    VLOG(1) << GetContext() << " " << message;
  }

  void OrthancLogger::Trace(const std::string& message)
  {
    VLOG(1) << GetContext() << " " << message;
  }

  void OrthancLogger::Info(const char *message)
  {
    LOG(INFO) << GetContext() << " " << message;
  }

  void OrthancLogger::Info(const std::string& message)
  {
    LOG(INFO) << GetContext() << " " << message;
  }

  void OrthancLogger::Warning(const char *message)
  {
    LOG(WARNING) << GetContext() << " " << message;
  }

  void OrthancLogger::Warning(const std::string& message)
  {
    LOG(WARNING) << GetContext() << " " << message;
  }

  void OrthancLogger::Error(const char *message)
  {
    LOG(ERROR) << GetContext() << " " << message;
  }

  void OrthancLogger::Error(const std::string& message)
  {
    LOG(ERROR) << GetContext() << " " << message;
  }
}