35 #include <boost/test/unit_test.hpp> 36 #include <boost/filesystem.hpp> 52 BOOST_CHECK(boost::filesystem::file_size(
"log/unit_test_terralib.log") > 0);
73 BOOST_AUTO_TEST_SUITE_END()
#define TE_ADD_LOGGER_FROM_FILE(filename)
Use this tag to init a logger using a configuration file.
const std::string TERRALIB_DEFAULT_LOGGER
The default name of the log file if none is informed.
#define TE_CORE_LOG_DEBUG(channel, message)
Use this tag in order to log a message to a specified logger with the DEBUG level.
#define TE_CORE_LOG_FATAL(channel, message)
Use this tag in order to log a message to a specified logger with the FATAL level.
BOOST_AUTO_TEST_CASE(configuration_file_logger_test)
#define TE_CORE_LOG_ERROR(channel, message)
Use this tag in order to log a message to a specified logger with the ERROR level.
#define TE_LOG_INFO(message)
Use this tag in order to log a message to the TerraLib default logger with the INFO level...
static Logger & instance()
It returns a reference to the singleton instance.
#define TE_INIT_DEFAULT_LOGGER(filename)
Use this tag in order to initialize the default TerraLib logger.
#define TE_LOG_FATAL(message)
Use this tag in order to log a message to the TerraLib default logger with the FATAL level...
This class is designed to manage the log of information in TerraLib.
BOOST_AUTO_TEST_SUITE(logger_test_case) BOOST_AUTO_TEST_CASE(default_logger_test)
#define TE_LOG_TRACE(message)
Use this tag in order to log a message to the TerraLib default logger with the TRACE level...
#define TE_CORE_LOG_INFO(channel, message)
Use this tag in order to log a message to a specified logger with the INFO level. ...
TECOREEXPORT std::string FindInTerraLibPath(const std::string &path)
Returns the path relative to a directory or file in the context of TerraLib.
#define TE_LOG_DEBUG(message)
Use this tag in order to log a message to the TerraLib default logger with the DEBUG level...
#define TE_LOG_ERROR(message)
Use this tag in order to log a message to the TerraLib default logger with the ERROR level...
An exception indicating that a given argument is not valid, for instance if a given item already exis...
#define TE_LOG_WARN(message)
Use this tag in order to log a message to the TerraLib default logger with the WARN level...
Exception classes for the TerraLib Core Runtime Library.
#define TE_CORE_LOG_TRACE(channel, message)
Use this tag in order to log a message to a specified logger with the TRACE level.
#define TE_CORE_LOG_WARN(channel, message)
Use this tag in order to log a message to a specified logger with the WARN level. ...