This class is designed to manage the log of information in TerraLib. More...
Go to the source code of this file.
Classes | |
| class | te::core::Logger |
Namespaces | |
| te | |
| URI C++ Library. | |
| te::core | |
Macros | |
| #define | CURRENT_FUNCTION std::string(__FUNCTION__) |
| #define | TE_ADD_LOGGER(name, filename, format) ((void)0) |
| Use this tag to init a logger using a default implementation without a configuration file. More... | |
| #define | TE_ADD_LOGGER_FROM_FILE(filename) ((void)0) |
| Use this tag to init a logger using a configuration file. More... | |
| #define | TE_CORE_LOG_DEBUG(channel, message) ((void)0) |
| Use this tag in order to log a message to a specified logger with the DEBUG level. More... | |
| #define | TE_CORE_LOG_ERROR(channel, message) ((void)0) |
| Use this tag in order to log a message to a specified logger with the ERROR level. More... | |
| #define | TE_CORE_LOG_FATAL(channel, message) ((void)0) |
| Use this tag in order to log a message to a specified logger with the FATAL level. More... | |
| #define | TE_CORE_LOG_INFO(channel, message) ((void)0) |
| Use this tag in order to log a message to a specified logger with the INFO level. More... | |
| #define | TE_CORE_LOG_TRACE(channel, message) ((void)0) |
| Use this tag in order to log a message to a specified logger with the TRACE level. More... | |
| #define | TE_CORE_LOG_WARN(channel, message) ((void)0) |
| Use this tag in order to log a message to a specified logger with the WARN level. More... | |
| #define | TE_INIT_DEFAULT_LOGGER(filename) ((void)0) |
| Use this tag in order to initialize the default TerraLib logger. More... | |
| #define | TE_LOG_DEBUG(message) TE_CORE_LOG_DEBUG(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
| Use this tag in order to log a message to the TerraLib default logger with the DEBUG level. More... | |
| #define | TE_LOG_ERROR(message) TE_CORE_LOG_ERROR(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
| Use this tag in order to log a message to the TerraLib default logger with the ERROR level. More... | |
| #define | TE_LOG_FATAL(message) TE_CORE_LOG_FATAL(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
| Use this tag in order to log a message to the TerraLib default logger with the FATAL level. More... | |
| #define | TE_LOG_INFO(message) TE_CORE_LOG_INFO(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
| Use this tag in order to log a message to the TerraLib default logger with the INFO level. More... | |
| #define | TE_LOG_TRACE(message) TE_CORE_LOG_TRACE(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
| Use this tag in order to log a message to the TerraLib default logger with the TRACE level. More... | |
| #define | TE_LOG_WARN(message) TE_CORE_LOG_WARN(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
| Use this tag in order to log a message to the TerraLib default logger with the WARN level. More... | |
Variables | |
| const std::string | TERRALIB_DEFAULT_LOGGER = "terralib" |
| The default name of the log file if none is informed. More... | |
| const std::string | TERRALIB_DEFAULT_LOGGER_FORMAT = "[%TimeStamp%] <%Severity%> %Message%" |
| The default message format if none is informed. More... | |
| #define TE_ADD_LOGGER | ( | name, | |
| filename, | |||
| format | |||
| ) | ((void)0) |
| #define TE_ADD_LOGGER_FROM_FILE | ( | filename | ) | ((void)0) |
Use this tag to init a logger using a configuration file.
| name | The name of the logger. |
| filename | The name of the configuration file. |
| std::exception | If the configuration file is doesn't load. |
Definition at line 184 of file Logger.h.
Referenced by BOOST_AUTO_TEST_CASE(), and main().
| #define TE_CORE_LOG_DEBUG | ( | channel, | |
| message | |||
| ) | ((void)0) |
Use this tag in order to log a message to a specified logger with the DEBUG level.
| channel | The name of your logger. |
| message | The message to be logged. |
Definition at line 225 of file Logger.h.
Referenced by te::vp::GroupThreadManager::addWarning(), BOOST_AUTO_TEST_CASE(), te::mnt::ProfileDialog::DrawSelected(), te::vp::Intersection::executeMemory(), main(), te::attributefill::VectorToRasterDialog::onOkPushButtonClicked(), te::vp::IntersectionDialog::onOkPushButtonClicked(), te::vp::GeometricOpDialog::onOkPushButtonClicked(), te::mnt::ProfileDialog::onOkPushButtonClicked(), te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), te::vp::IntersectionMemory::pairwiseIntersection(), te::mnt::CreateIsolines::run(), te::mnt::Profile::runTINProfile(), and te::attributefill::VectorToVectorOp::save().
| #define TE_CORE_LOG_ERROR | ( | channel, | |
| message | |||
| ) | ((void)0) |
Use this tag in order to log a message to a specified logger with the ERROR level.
| channel | The name of your logger. |
| message | The message to be logged. |
Definition at line 267 of file Logger.h.
Referenced by BOOST_AUTO_TEST_CASE(), and te::rst::Vectorizer::run().
| #define TE_CORE_LOG_FATAL | ( | channel, | |
| message | |||
| ) | ((void)0) |
Use this tag in order to log a message to a specified logger with the FATAL level.
| channel | The name of your logger. |
| message | The message to be logged. |
Definition at line 281 of file Logger.h.
Referenced by BOOST_AUTO_TEST_CASE().
| #define TE_CORE_LOG_INFO | ( | channel, | |
| message | |||
| ) | ((void)0) |
Use this tag in order to log a message to a specified logger with the INFO level.
| channel | The name of your logger. |
| message | The message to be logged. |
Definition at line 239 of file Logger.h.
Referenced by BOOST_AUTO_TEST_CASE().
| #define TE_CORE_LOG_TRACE | ( | channel, | |
| message | |||
| ) | ((void)0) |
Use this tag in order to log a message to a specified logger with the TRACE level.
| channel | The name of your logger. |
| message | The message to be logged. |
Definition at line 211 of file Logger.h.
Referenced by BOOST_AUTO_TEST_CASE().
| #define TE_CORE_LOG_WARN | ( | channel, | |
| message | |||
| ) | ((void)0) |
Use this tag in order to log a message to a specified logger with the WARN level.
| channel | The name of your logger. |
| message | The message to be logged. |
Definition at line 253 of file Logger.h.
Referenced by BOOST_AUTO_TEST_CASE().
| #define TE_INIT_DEFAULT_LOGGER | ( | filename | ) | ((void)0) |
Use this tag in order to initialize the default TerraLib logger.
| filename | The name of the log file. |
Definition at line 197 of file Logger.h.
Referenced by BOOST_AUTO_TEST_SUITE(), te::qt::af::ApplicationController::initialize(), and main().
| #define TE_LOG_DEBUG | ( | message | ) | TE_CORE_LOG_DEBUG(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
Use this tag in order to log a message to the TerraLib default logger with the DEBUG level.
| message | The message to be logged. |
Definition at line 304 of file Logger.h.
Referenced by BOOST_AUTO_TEST_SUITE(), te::core::FindInTerraLibPath(), te::qt::plugins::gdal::GetLayer(), te::qt::plugins::gdal::GetLayers(), and te::attributefill::VectorToVectorMemory::run().
| #define TE_LOG_ERROR | ( | message | ) | TE_CORE_LOG_ERROR(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
Use this tag in order to log a message to the TerraLib default logger with the ERROR level.
| message | The message to be logged. |
Definition at line 337 of file Logger.h.
Referenced by BOOST_AUTO_TEST_SUITE(), te::vp::Union::executeMemory(), te::vp::Identity::executeMemory(), te::vp::Difference::executeMemory(), te::vp::Merge::executeMemory(), te::core::CharEncoding::fromUTF8(), te::gdal::GDALErrorHandler(), main(), te::vp::MakeGeometryValid::makeValidMemory(), te::vp::MakeGeometryValid::makeValidQuery(), te::ogr::OGRErrorHandler(), te::vp::PolygonToLineDialog::onOkPushButtonClicked(), te::vp::LineToPolygonDialog::onOkPushButtonClicked(), te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked(), te::vp::BufferDialog::onOkPushButtonClicked(), te::vp::DifferenceDialog::onOkPushButtonClicked(), te::vp::IdentityDialog::onOkPushButtonClicked(), te::vp::DissolveDialog::onOkPushButtonClicked(), te::vp::LineToPolygonMemory::run(), te::vp::PolygonToLineMemory::run(), te::vp::BufferMemory::run(), te::vp::MultipartToSinglepart::runAll(), te::vp::MultipartToSinglepart::runSelected(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::vp::Dissolve::threadUnion(), te::core::CharEncoding::toASCII(), te::core::CharEncoding::toUTF8(), and te::xerces::Reader::~Reader().
| #define TE_LOG_FATAL | ( | message | ) | TE_CORE_LOG_FATAL(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
Use this tag in order to log a message to the TerraLib default logger with the FATAL level.
| message | The message to be logged. |
Definition at line 348 of file Logger.h.
Referenced by BOOST_AUTO_TEST_SUITE().
| #define TE_LOG_INFO | ( | message | ) | TE_CORE_LOG_INFO(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
Use this tag in order to log a message to the TerraLib default logger with the INFO level.
| message | The message to be logged. |
Definition at line 315 of file Logger.h.
Referenced by BOOST_AUTO_TEST_SUITE(), te::vp::GeometricOpMemory::CalculateTabularOp(), te::attributefill::VectorToVectorMemory::checkGeometries(), te::vp::Difference::executeMemory(), te::vp::Merge::executeMemory(), te::vp::Dissolve::executeMemory(), te::vp::Dissolve::executeQuery(), te::xml::Module::finalize(), te::attributefill::VectorToVectorMemory::getClassWithHighestIntersectionArea(), te::xml::Module::initialize(), te::common::LoggedException::LoggedException(), main(), te::vp::MergeDialog::onOkPushButtonClicked(), te::vp::IntersectionMemory::pairwiseIntersection(), te::vp::BufferQuery::prepareDataSet(), te::qt::widgets::DataSetTableView::renameColumn(), te::vp::GeometricOpMemory::run(), te::vp::GeometricOpQuery::run(), te::qt::widgets::DrawThread::run(), te::vp::BufferMemory::run(), te::attributefill::VectorToVectorMemory::run(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpQuery::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpQuery::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::vp::GeometricOpQuery::SetAllObjects(), te::vp::BufferMemory::setBuffer(), te::vp::GeometricOpQuery::SetOutputDSet(), and te::vp::Dissolve::threadSave().
| #define TE_LOG_TRACE | ( | message | ) | TE_CORE_LOG_TRACE(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
Use this tag in order to log a message to the TerraLib default logger with the TRACE level.
| message | The message to be logged. |
Definition at line 293 of file Logger.h.
Referenced by BOOST_AUTO_TEST_SUITE(), te::addressgeocoding::Module::finalize(), te::gm::Module::finalize(), te::map::Module::finalize(), te::mem::Module::finalize(), te::color::Module::finalize(), te::at::Module::finalize(), te::da::Module::finalize(), te::dt::Module::finalize(), te::edit::Module::finalize(), te::fe::Module::finalize(), te::graph::Module::finalize(), te::v8::jsi::Module::finalize(), te::qt::widgets::Module::finalize(), te::v8::common::Module::finalize(), te::stmem::Module::finalize(), te::srs::Module::finalize(), te::st::Module::finalize(), te::rp::Module::finalize(), te::common::Module::finalize(), te::addressgeocoding::Module::initialize(), te::map::Module::initialize(), te::color::Module::initialize(), te::mem::Module::initialize(), te::at::Module::initialize(), te::da::Module::initialize(), te::dt::Module::initialize(), te::edit::Module::initialize(), te::fe::Module::initialize(), te::gm::Module::initialize(), te::graph::Module::initialize(), te::qt::widgets::Module::initialize(), te::v8::common::Module::initialize(), te::v8::jsi::Module::initialize(), te::stmem::Module::initialize(), te::srs::Module::initialize(), te::st::Module::initialize(), te::rp::Module::initialize(), te::common::Module::initialize(), te::core::CppPluginEngine::load(), te::core::PluginManager::load(), main(), te::qt::plugins::ado::Plugin::shutdown(), te::qt::plugins::geofile::Plugin::shutdown(), te::qt::plugins::mysql::Plugin::shutdown(), te::qt::plugins::pgis::Plugin::shutdown(), te::qt::plugins::sqlite::Plugin::shutdown(), te::qt::plugins::wcs::Plugin::shutdown(), te::ws::ogc::wcs::qtplugin::Plugin::shutdown(), te::qt::plugins::cellspace::Plugin::shutdown(), te::qt::plugins::terralib4::Plugin::shutdown(), te::qt::plugins::wfs::Plugin::shutdown(), te::qt::plugins::ogr::Plugin::shutdown(), te::qt::plugins::pgisRaster::Plugin::shutdown(), te::qt::plugins::addressgeocoding::Plugin::shutdown(), te::qt::plugins::attributefill::Plugin::shutdown(), te::qt::plugins::gdal::Plugin::shutdown(), te::qt::plugins::wms::Plugin::shutdown(), te::qt::plugins::st::Plugin::shutdown(), te::ws::ogc::wms::qtplugin::Plugin::shutdown(), te::qt::plugins::terramobile::Plugin::shutdown(), te::qt::plugins::mnt::Plugin::shutdown(), te::wms::Module::shutdown(), te::wcs::Module::shutdown(), te::qt::plugins::sa::Plugin::shutdown(), te::wfs::Module::shutdown(), terralib4::Module::shutdown(), te::qt::plugins::vp::Plugin::shutdown(), te::ado::Module::shutdown(), te::qt::plugins::edit::Plugin::shutdown(), te::v8::plugin::Module::shutdown(), te::ws::ogc::wcs::da::Module::shutdown(), te::ws::ogc::wms::da::Module::shutdown(), te::qt::plugins::rp::Plugin::shutdown(), te::core::PluginManager::start(), te::qt::plugins::geofile::Plugin::startup(), te::qt::plugins::ado::Plugin::startup(), te::qt::plugins::mysql::Plugin::startup(), te::qt::plugins::pgis::Plugin::startup(), te::qt::plugins::wcs::Plugin::startup(), te::qt::plugins::sqlite::Plugin::startup(), te::ws::ogc::wcs::qtplugin::Plugin::startup(), te::qt::plugins::cellspace::Plugin::startup(), te::qt::plugins::wfs::Plugin::startup(), te::qt::plugins::terralib4::Plugin::startup(), te::qt::plugins::ogr::Plugin::startup(), te::qt::plugins::addressgeocoding::Plugin::startup(), te::qt::plugins::pgisRaster::Plugin::startup(), te::qt::plugins::wms::Plugin::startup(), te::qt::plugins::attributefill::Plugin::startup(), te::qt::plugins::gdal::Plugin::startup(), te::qt::plugins::st::Plugin::startup(), te::wcs::Module::startup(), te::ws::ogc::wms::qtplugin::Plugin::startup(), te::wms::Module::startup(), te::wfs::Module::startup(), terralib4::Module::startup(), te::qt::plugins::terramobile::Plugin::startup(), te::ado::Module::startup(), te::qt::plugins::mnt::Plugin::startup(), te::qt::plugins::sa::Plugin::startup(), te::v8::plugin::Module::startup(), te::qt::plugins::vp::Plugin::startup(), te::ws::ogc::wms::da::Module::startup(), te::ws::ogc::wcs::da::Module::startup(), te::qt::plugins::edit::Plugin::startup(), te::qt::plugins::rp::Plugin::startup(), te::core::PluginManager::stop(), and te::core::PluginManager::unload().
| #define TE_LOG_WARN | ( | message | ) | TE_CORE_LOG_WARN(TERRALIB_DEFAULT_LOGGER, CURRENT_FUNCTION + " : " + message) |
Use this tag in order to log a message to the TerraLib default logger with the WARN level.
| message | The message to be logged. |
Definition at line 326 of file Logger.h.
Referenced by BOOST_AUTO_TEST_SUITE(), and te::rst::PolygonIterator< T >::getScanLineIntersectionRanges().
| const std::string TERRALIB_DEFAULT_LOGGER = "terralib" |
The default name of the log file if none is informed.
Definition at line 47 of file Logger.h.
Referenced by BOOST_AUTO_TEST_SUITE().