87#define JANUS_LOGGER_API_VERSION        3 
  104#define JANUS_LOGGER_INIT(...) {                        \ 
  107                .get_api_compatibility = NULL,                  \ 
  108                .get_version = NULL,                                    \ 
  109                .get_version_string = NULL,                             \ 
  110                .get_description = NULL,                                \ 
  112                .get_author = NULL,                                             \ 
  113                .get_package = NULL,                                    \ 
  114                .incoming_logline = NULL,                               \ 
 
  128        int (* 
const init)(
const char *server_name, 
const char *config_path);
 
 
janus_logger * create_l(void)
The hook that logger plugins need to implement to be created from the Janus core.
Definition logger.h:176
struct json_t json_t
Definition plugin.h:236
The logger plugin session and callbacks interface.
Definition logger.h:123
int(*const get_api_compatibility)(void)
Informative method to request the API version this logger plugin was compiled against.
Definition logger.h:135
const char *(*const get_description)(void)
Informative method to request a description of the logger plugin.
Definition logger.h:141
int(*const init)(const char *server_name, const char *config_path)
Logger plugin initialization/constructor.
Definition logger.h:128
void(*const destroy)(void)
Logger plugin deinitialization/destructor.
Definition logger.h:130
const char *(*const get_name)(void)
Informative method to request the name of the logger plugin.
Definition logger.h:143
const char *(*const get_version_string)(void)
Informative method to request the string version of the logger plugin.
Definition logger.h:139
int(*const get_version)(void)
Informative method to request the numeric version of the logger plugin.
Definition logger.h:137
const char *(*const get_package)(void)
Informative method to request the package name of the logger plugin (what will be used in web applica...
Definition logger.h:147
const char *(*const get_author)(void)
Informative method to request the author of the logger plugin.
Definition logger.h:145
json_t *(*const handle_request)(json_t *request)
Method to send a request to this specific logger plugin.
Definition logger.h:172
void(*const incoming_logline)(int64_t timestamp, const char *line)
Method to notify the logger plugin that a new log line is available.
Definition logger.h:159