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.c File Reference
#include "wantassert.h"
#include "leafnode.h"
#include "ln_log.h"
#include <stdarg.h>
#include <assert.h>
#include <syslog.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
Include dependency graph for ln_log.c:

Go to the source code of this file.

Functions

void ln_log_use_console (int en)
 
static void vln_log_core (int slg, FILE *console, int severity, int context, const char *format, va_list ap)
 
void ln_log (int sev, int ctx, const char *format,...)
 
void ln_log_so (int sev, int ctx, const char *format,...)
 
void ln_log_prt (int sev, int ctx, const char *format,...)
 
void ln_log_sys (int sev, int ctx, const char *format,...)
 

Variables

static int maylog_console = 1
 

Function Documentation

◆ ln_log()

◆ ln_log_prt()

void ln_log_prt ( int  sev,
int  ctx,
const char *  format,
  ... 
)

Definition at line 123 of file ln_log.c.

References vln_log_core().

◆ ln_log_so()

void ln_log_so ( int  sev,
int  ctx,
const char *  format,
  ... 
)

Definition at line 113 of file ln_log.c.

References vln_log_core().

◆ ln_log_sys()

void ln_log_sys ( int  sev,
int  ctx,
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().

◆ vln_log_core()

static void vln_log_core ( int  slg,
FILE *  console,
int  severity,
int  context,
const char *  format,
va_list  ap 
)
static

Definition at line 44 of file ln_log.c.

References debugmode, LNLOG_SDEBUG, LNLOG_SERR, LNLOG_SMIN, maylog_console, verbose, and vsnprintf.

Referenced by ln_log(), ln_log_prt(), ln_log_so(), and ln_log_sys().

Variable Documentation

◆ maylog_console

int maylog_console = 1
static

Definition at line 29 of file ln_log.c.

Referenced by ln_log_use_console(), and vln_log_core().