netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
logging.h File Reference
#include "config.h"
Include dependency graph for logging.h:
This graph shows which files directly or indirectly include this file:

Macros

#define nfts_log(prio, fmt, args...)   nft_sync_log(&nfts_inst, prio, fmt, ##args)
 

Enumerations

enum  nft_sync_logging_type {
  NFTS_LOG_T_FILE = 0,
  NFTS_LOG_T_SYSLOG
}
 
enum  nft_sync_logging_prio {
  NFTS_LOG_DEBUG = 0,
  NFTS_LOG_INFO,
  NFTS_LOG_NOTICE,
  NFTS_LOG_ERROR,
  NFTS_LOG_FATAL,
  NFTS_LOG_MAX
}
 

Functions

int nft_sync_log_init (struct nft_sync_inst *inst)
 
void nft_sync_log (struct nft_sync_inst *inst, int priority, const char *format,...)
 
void nft_sync_log_fini (struct nft_sync_inst *inst)
 

Macro Definition Documentation

#define nfts_log (   prio,
  fmt,
  args... 
)    nft_sync_log(&nfts_inst, prio, fmt, ##args)

Referenced by main(), and nft_sync_event_loop().

Enumeration Type Documentation

Enumerator
NFTS_LOG_DEBUG 
NFTS_LOG_INFO 
NFTS_LOG_NOTICE 
NFTS_LOG_ERROR 
NFTS_LOG_FATAL 
NFTS_LOG_MAX 
Enumerator
NFTS_LOG_T_FILE 
NFTS_LOG_T_SYSLOG 

Function Documentation

void nft_sync_log ( struct nft_sync_inst inst,
int  priority,
const char *  format,
  ... 
)
void nft_sync_log_fini ( struct nft_sync_inst inst)

References nft_sync_inst::fd, nft_sync_inst::log, NFTS_LOG_T_FILE, NFTS_LOG_T_SYSLOG, NULL, and nft_sync_inst::type.

Referenced by main().

Here is the caller graph for this function:

int nft_sync_log_init ( struct nft_sync_inst inst)

References nft_sync_inst::fd, nft_sync_inst::filename, nft_sync_inst::log, NFTS_LOG_T_FILE, NFTS_LOG_T_SYSLOG, NULL, and nft_sync_inst::type.

Referenced by main().

Here is the caller graph for this function: