DataSource's log files keep a record of all data and to what destinations the data was sent.
The DataSource SDK logging API permits you to create your own logging functions
Log file names can use the following abbreviations:
- %r can be used to represent the configured
application-root
.
- %d can be used to represent the configured
log-dir
.
- %a can be used to represent the configured
application-name
.
- %n can be used to represent the configured
application-name
.
- %M can be used to represent the major version of the DataSource Libraries.
- %m can be used to represent the minor version of the DataSource Libraries.
- %h can be used to represent the hostname.
- %u can be used to represent the home directory of the user running the application.
Used for log messages that indicate a problem or feedback with library configuration.
Used for log messages that indicate a serious failure.
Used for tracing messages.
Used for log messages that indicate a problem.
Used for fairly detailed tracing messages.
Used for the most finely detailed tracing messages.
Used for informational messages.
#define DS_LOG_MONITOR 128 |
A modifier that will send the log message to the monitoring system in addition to the event log, even if the log level is below the monitoring threshold value.
Used for messages of greater importance than DS_LOG_WARN that may not indicate problems.
#define DS_LOG_SYSLOG 512 |
A modifier which will write the log message to the system log in addition to the event log.
#define DS_LOG_TERMINAL 256 |
A modifier which will write the log message to the terminal in addition to the event log.
Used for messages that indicate a potential problem.
typedef void(* ds_logcycled_t) (ds_log_t *log) |
Callback used when the log has cycled.
- Parameters
-
log | The logfile that has cycled |
typedef void(* ds_loglevelchange_t) (ds_log_t *log, int new_level) |
Callback used when the logging level of a log file is changed.
- Parameters
-
log | The logfile the change has happend to |
new_level | The new debug level |