Transformer SDK For C  8.0.2.290852-a608fcd3
DataSource Logging

Macros

#define DS_LOG_CONFIG   0
 Used for log messages that indicate a problem or feedback with library configuration. More...
 
#define DS_LOG_CRIT   2
 Used for log messages that indicate a serious failure. More...
 
#define DS_LOG_DEBUG   7
 Used for tracing messages. More...
 
#define DS_LOG_ERROR   3
 Used for log messages that indicate a problem. More...
 
#define DS_LOG_FINER   8
 Used for fairly detailed tracing messages. More...
 
#define DS_LOG_FINEST   9
 Used for the most finely detailed tracing messages. More...
 
#define DS_LOG_INFO   6
 Used for informational messages. More...
 
#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. More...
 
#define DS_LOG_NOTIFY   4
 Used for messages of greater importance than DS_LOG_WARN that may not indicate problems. More...
 
#define DS_LOG_SYSLOG   512
 A modifier which will write the log message to the system log in addition to the event log regardless of the level passed to ds_log() or the level set by log-syslog-level. Using this modifier with ds_log() is equivalent to calling ds_syslog() without the modifier. More...
 
#define DS_LOG_TERMINAL   256
 A modifier which will write the log message to the terminal in addition to the event log. More...
 
#define DS_LOG_WARN   5
 Used for messages that indicate a potential problem. More...
 

Typedefs

typedef struct _ds_log ds_log_t
 The log file object. More...
 
typedef void(* ds_logcycled_t) (ds_log_t *log)
 Callback used when the log has cycled. More...
 
typedef void(* ds_loglevelchange_t) (ds_log_t *log, int new_level)
 Callback used when the logging level of a log file is changed. More...
 

Variables

TRANSFORMER_EXPORT ds_log_trtas_log
 Name of the Transformer's event log. More...
 

Detailed Description

Macro Definition Documentation

#define DS_LOG_CONFIG   0

Used for log messages that indicate a problem or feedback with library configuration.

#define DS_LOG_CRIT   2

Used for log messages that indicate a serious failure.

#define DS_LOG_DEBUG   7

Used for tracing messages.

#define DS_LOG_ERROR   3

Used for log messages that indicate a problem.

#define DS_LOG_FINER   8

Used for fairly detailed tracing messages.

#define DS_LOG_FINEST   9

Used for the most finely detailed tracing messages.

#define DS_LOG_INFO   6

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.

#define DS_LOG_NOTIFY   4

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 regardless of the level passed to ds_log() or the level set by log-syslog-level. Using this modifier with ds_log() is equivalent to calling ds_syslog() without the modifier.

#define DS_LOG_TERMINAL   256

A modifier which will write the log message to the terminal in addition to the event log.

#define DS_LOG_WARN   5

Used for messages that indicate a potential problem.

Typedef Documentation

typedef struct _ds_log ds_log_t

The log file object.

typedef void(* ds_logcycled_t) (ds_log_t *log)

Callback used when the log has cycled.

Parameters
logThe 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
logThe logfile the change has happend to
new_levelThe new debug level

Variable Documentation

TRANSFORMER_EXPORT ds_log_t* rtas_log

Name of the Transformer's event log.

Modules are permitted to write to the Transformer's main event log, this could be useful to enable data flow to be traced through the system

Examples:
demo-calcvalue.c, demo-delete.c, demo-modify.c, demo-spread.c, demo-userdata.c, and demo-userdata2.c.

Generated on Wed Jul 31 2024 18:00:14 for Transformer SDK For C