Typedefs | Enumerations | Functions

blpapi_logging.h File Reference

Provide a C call to register a call back for logging. More...

Go to the source code of this file.

Typedefs

typedef enum
blpapi_Logging_Severity_t 
blpapi_Logging_Severity_t
typedef void(* blpapi_Logging_Func_t )(blpapi_UInt64_t threadId, int severity, blpapi_Datetime_t timestamp, const char *category, const char *message)

Enumerations

enum  blpapi_Logging_Severity_t {
  blpapi_Logging_SEVERITY_OFF = 0, blpapi_Logging_SEVERITY_FATAL = 1, blpapi_Logging_SEVERITY_ERROR = 2, blpapi_Logging_SEVERITY_WARN = 3,
  blpapi_Logging_SEVERITY_INFO = 4, blpapi_Logging_SEVERITY_DEBUG = 5, blpapi_Logging_SEVERITY_TRACE = 6
}

Functions

BLPAPI_EXPORT int blpapi_Logging_registerCallback (blpapi_Logging_Func_t callback, blpapi_Logging_Severity_t thresholdSeverity)

Detailed Description

Provide a C call to register a call back for logging.


Typedef Documentation

typedef void(* blpapi_Logging_Func_t)(blpapi_UInt64_t threadId, int severity, blpapi_Datetime_t timestamp, const char *category, const char *message)

Enumeration Type Documentation

Enumerator:
blpapi_Logging_SEVERITY_OFF 
blpapi_Logging_SEVERITY_FATAL 
blpapi_Logging_SEVERITY_ERROR 
blpapi_Logging_SEVERITY_WARN 
blpapi_Logging_SEVERITY_INFO 
blpapi_Logging_SEVERITY_DEBUG 
blpapi_Logging_SEVERITY_TRACE 

Function Documentation

BLPAPI_EXPORT int blpapi_Logging_registerCallback ( blpapi_Logging_Func_t  callback,
blpapi_Logging_Severity_t  thresholdSeverity 
)

Register the specified callback at the specified thresholdSeverity. The callback will be called for all the log messages that have severity higher or equal to the thresholdSeverity. 0 is returned if callback is registered and a non-zero otherwise. The callback needs to be registered before the start of all sessions.