Logger.h File Reference

This class is designed to manage the log of information in TerraLib. More...

#include "../BuildConfig.h"
#include "Config.h"

Go to the source code of this file.

Macros

#define TE_LOG_ASSERT(condition, msg)   ((void)0)
 Use this tag in order to log a message to a specified logger with the ASSERT level. More...
 
#define TE_LOG_DEBUG(msg)   ((void)0)
 Use this tag in order to log a message to a specified logger with the DEBUG level. More...
 
#define TE_LOG_ERROR(msg)   ((void)0)
 Use this tag in order to log a message to a specified logger with the ERROR level. More...
 
#define TE_LOG_FATAL(msg)   ((void)0)
 Use this tag in order to log a message to a specified logger with the FATAL level. More...
 
#define TE_LOG_INFO(msg)   ((void)0)
 Use this tag in order to log a message to a specified logger with the INFO level. More...
 
#define TE_LOG_TRACE(msg)   ((void)0)
 Use this tag in order to log a message to a specified logger with the TRACE level. More...
 
#define TE_LOG_WARN(msg)   ((void)0)
 Use this tag in order to log a message to a specified logger with the WARN level. More...
 
#define TERRALIB_LOGGER_DEFAULT_CONFIG_FILE_TYPE   te::common::LOGGER_TXT_CONFIG
 It sets the default type of file used to configure the logger. More...
 
#define TERRALIB_LOGGER_DEFAULT_CONFIGURATION_FILE   "share/terralib/config/te-log.conf"
 
#define TERRALIB_LOGGER_DEFAULT_NAME   "terralib"
 This is the fully qualified TerraLib root logger. More...
 

Detailed Description

This class is designed to manage the log of information in TerraLib.

Definition in file Logger.h.

Macro Definition Documentation

#define TE_LOG_ASSERT (   condition,
  msg 
)    ((void)0)

Use this tag in order to log a message to a specified logger with the ASSERT level.

Parameters
conditionAn expression (condition). If it is not true, the message will be logged.
msgThe message to be logged. Example: "Exception raised because of a missing parameter!".
Note
The ASSERT level can be used to check expressions that must be evaluated as true.

Definition at line 62 of file Logger.h.

#define TE_LOG_DEBUG (   msg)    ((void)0)

Use this tag in order to log a message to a specified logger with the DEBUG level.

Parameters
msgThe message to be logged. Example: "Exception raised because of a missing parameter!".
Note
The DEBUG Level designates fine-grained informational events that are most useful to debug an application.

Definition at line 122 of file Logger.h.

#define TE_LOG_ERROR (   msg)    ((void)0)

Use this tag in order to log a message to a specified logger with the ERROR level.

Parameters
msgThe message to be logged. Example: "Exception raised because of a missing parameter!".
Note
The ERROR level designates error events that might still allow the application to continue running.

Definition at line 77 of file Logger.h.

#define TE_LOG_FATAL (   msg)    ((void)0)

Use this tag in order to log a message to a specified logger with the FATAL level.

Parameters
msgThe message to be logged. Example: "Exception raised because of a missing parameter!".
Note
The FATAL level designates very severe error events that will presumably lead the application to abort.

Definition at line 46 of file Logger.h.

#define TE_LOG_INFO (   msg)    ((void)0)

Use this tag in order to log a message to a specified logger with the INFO level.

Parameters
msgThe message to be logged. Example: "Exception raised because of a missing parameter!".
Note
The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.

Definition at line 107 of file Logger.h.

#define TE_LOG_TRACE (   msg)    ((void)0)

Use this tag in order to log a message to a specified logger with the TRACE level.

Parameters
msgThe message to be logged. Example: "Exception raised because of a missing parameter!".
Note
The TRACE Level designates finer-grained informational events than the DEBUG.

Definition at line 137 of file Logger.h.

#define TE_LOG_WARN (   msg)    ((void)0)

Use this tag in order to log a message to a specified logger with the WARN level.

Parameters
msgThe message to be logged. Example: "Exception raised because of a missing parameter!".
Note
The WARN level designates potentially harmful situations.

Definition at line 92 of file Logger.h.

#define TERRALIB_LOGGER_DEFAULT_CONFIG_FILE_TYPE   te::common::LOGGER_TXT_CONFIG

It sets the default type of file used to configure the logger.

Note
See LoggerConfigurationType enum for more information about possible values for this macro.

Definition at line 165 of file Logger.h.

#define TERRALIB_LOGGER_DEFAULT_CONFIGURATION_FILE   "share/terralib/config/te-log.conf"

Definition at line 156 of file Logger.h.

#define TERRALIB_LOGGER_DEFAULT_NAME   "terralib"

This is the fully qualified TerraLib root logger.

Note
If you are developing a new module and want to have your own log configuration file, please give it a name starting with "terralib.your-module-name". So it will belong to TerraLib loggers tree.

Definition at line 149 of file Logger.h.