3.9.2. Log moduleΒΆ

Logging back-end module.

Functions

struct logger * log_module_logger(struct module * module, struct parameters * args)

Create a logger from the given module.

class logger_module

Logger helper structure.

Public Members

struct logger logger

struct log_module * module

class log_module

Log module structure. This module type will allow to create custom logging back-end for Haka to, for instance, put the log into syslog.

Public Members

struct module module

Module structure.

struct logger_module *(* init_logger)(struct parameters *args)

Create a new logger. This function must fill the fields of the struct logger_module.

void(* cleanup_logger)(struct logger_module *logger)

Destroy a logger.