Skip to content

File Log.h

FileList > detail > tools > Log.h

Go to the source code of this file

  • #include "SFCGAL/config.h"
  • #include <boost/format.hpp>
  • #include <string>

Namespaces

Type Name
namespace SFCGAL

Classes

Type Name
class Logger

Macros

Type Name
define LOG_DEBUG (msg)
define LOG_ERROR (msg)
define LOG_NOTICE (msg)
define SFCGAL_CRITICAL (message)
define SFCGAL_DEBUG (message) SFCGAL::Logger::get()->log(SFCGAL::Logger::Debug, message, __FILE__, __LINE__)
define SFCGAL_ERROR (message) SFCGAL::Logger::get()->log(SFCGAL::Logger::Info, message, __FILE__, __LINE__)
define SFCGAL_INFO (message) SFCGAL::Logger::get()->log(SFCGAL::Logger::Info, message, __FILE__, __LINE__)
define SFCGAL_LOG (level, msg)
define SFCGAL_WARNING (message)

Macro Definition Documentation

define LOG_DEBUG

#define LOG_DEBUG (
    msg
) do {                                                                         \
    SFCGAL_LOG("DEBUG", msg);                                                  \
  } while (0)

define LOG_ERROR

#define LOG_ERROR (
    msg
) do {                                                                         \
    SFCGAL_LOG("ERROR", msg);                                                  \
  } while (0)

define LOG_NOTICE

#define LOG_NOTICE (
    msg
) do {                                                                         \
    SFCGAL_LOG("NOTICE", msg);                                                 \
  } while (0)

define SFCGAL_CRITICAL

#define SFCGAL_CRITICAL (
    message
) SFCGAL::Logger::get ()->log(SFCGAL::Logger::Critical, message, __FILE__,      \
                             __LINE__)

Helper method to log critical message

SFCGAL_ERROR( "unexpected behavior in triangulate" ) ;

define SFCGAL_DEBUG

#define SFCGAL_DEBUG (
    message
) SFCGAL::Logger::get ()->log(SFCGAL::Logger::Debug, message, __FILE__, __LINE__)

Helper method to log debug message

SFCGAL_DEBUG( "start new method" ) ;

define SFCGAL_ERROR

#define SFCGAL_ERROR (
    message
) SFCGAL::Logger::get ()->log(SFCGAL::Logger::Info, message, __FILE__, __LINE__)

Helper method to log error message

SFCGAL_ERROR( "invalid geometry" ) ;

define SFCGAL_INFO

#define SFCGAL_INFO (
    message
) SFCGAL::Logger::get ()->log(SFCGAL::Logger::Info, message, __FILE__, __LINE__)

Helper method to log information message

SFCGAL_INFO( "start new method" ) ;

define SFCGAL_LOG

#define SFCGAL_LOG (
    level,
    msg
) do {                                                                         \ SFCGAL::Logger::get () << "[" << (level) << " " << __FILE__ << ":"          \
                          << __LINE__ << "] " << msg << std::endl;             \
  } while (0)

define SFCGAL_WARNING

#define SFCGAL_WARNING (
    message
) SFCGAL::Logger::get ()->log(SFCGAL::Logger::Warning, message, __FILE__,       \
                             __LINE__)

Helper method to log warning message

SFCGAL_WARNING( "start new method" ) ;


The documentation for this class was generated from the following file /builds/sfcgal/SFCGAL/src/detail/tools/Log.h