leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ln_log.h File Reference
#include <stdarg.h>
Include dependency graph for ln_log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LNLOG_SCRIT   2 /* critical conditions */
 
#define LNLOG_SERR   3 /* * error conditions */
 
#define LNLOG_SWARNING   4 /* * warning conditions */
 
#define LNLOG_SNOTICE   5 /* * normal but significant condition */
 
#define LNLOG_SINFO   6 /* * informational */
 
#define LNLOG_SDEBUG   7 /* * debug-level messages */
 
#define LNLOG_SMIN   2 /* minimal used severity */
 
#define LNLOG_CTOP   1 /* top level, always log */
 
#define LNLOG_CSERVER   2 /* server context */
 
#define LNLOG_CGROUP   3 /* group context */
 
#define LNLOG_CARTICLE   4 /* article context */
 
#define LNLOG_CALL   5 /* most verbose */
 

Functions

void ln_log_open (const char *ident)
 
void ln_log_use_console (int en)
 
void ln_log (int severity, int context, const char *format,...)
 
void ln_log_so (int severity, int context, const char *format,...)
 
void ln_log_prt (int severity, int context, const char *format,...)
 
void ln_log_sys (int severity, int context, const char *format,...)
 

Variables

int verbose
 

Macro Definition Documentation

◆ LNLOG_CALL

#define LNLOG_CALL   5 /* most verbose */

Definition at line 26 of file ln_log.h.

◆ LNLOG_CARTICLE

#define LNLOG_CARTICLE   4 /* article context */

Definition at line 25 of file ln_log.h.

◆ LNLOG_CGROUP

#define LNLOG_CGROUP   3 /* group context */

Definition at line 24 of file ln_log.h.

◆ LNLOG_CSERVER

#define LNLOG_CSERVER   2 /* server context */

Definition at line 23 of file ln_log.h.

◆ LNLOG_CTOP

#define LNLOG_CTOP   1 /* top level, always log */

Definition at line 22 of file ln_log.h.

◆ LNLOG_SCRIT

#define LNLOG_SCRIT   2 /* critical conditions */

Definition at line 12 of file ln_log.h.

◆ LNLOG_SDEBUG

#define LNLOG_SDEBUG   7 /* * debug-level messages */

Definition at line 17 of file ln_log.h.

◆ LNLOG_SERR

#define LNLOG_SERR   3 /* * error conditions */

Definition at line 13 of file ln_log.h.

◆ LNLOG_SINFO

#define LNLOG_SINFO   6 /* * informational */

Definition at line 16 of file ln_log.h.

◆ LNLOG_SMIN

#define LNLOG_SMIN   2 /* minimal used severity */

Definition at line 18 of file ln_log.h.

◆ LNLOG_SNOTICE

#define LNLOG_SNOTICE   5 /* * normal but significant condition */

Definition at line 15 of file ln_log.h.

◆ LNLOG_SWARNING

#define LNLOG_SWARNING   4 /* * warning conditions */

Definition at line 14 of file ln_log.h.

Function Documentation

◆ ln_log()

◆ ln_log_open()

void ln_log_open ( const char *  ident)

◆ ln_log_prt()

void ln_log_prt ( int  severity,
int  context,
const char *  format,
  ... 
)

Definition at line 123 of file ln_log.c.

References vln_log_core().

◆ ln_log_so()

void ln_log_so ( int  severity,
int  context,
const char *  format,
  ... 
)

Definition at line 113 of file ln_log.c.

References vln_log_core().

◆ ln_log_sys()

void ln_log_sys ( int  severity,
int  context,
const char *  format,
  ... 
)

Definition at line 133 of file ln_log.c.

References vln_log_core().

◆ ln_log_use_console()

void ln_log_use_console ( int  en)

open log, use ident as log tag

Definition at line 31 of file ln_log.c.

References maylog_console.

Referenced by main().

Variable Documentation

◆ verbose