ModDaemon.cc File Reference
#include "squid.h"
#include "cbdata.h"
#include "comm/Loops.h"
#include "fatal.h"
#include "fde.h"
#include "globals.h"
#include "log/Config.h"
#include "log/File.h"
#include "log/ModDaemon.h"
#include "SquidConfig.h"
#include "SquidIpc.h"
#include "SquidTime.h"
#include <cerrno>
Include dependency graph for ModDaemon.cc:

Go to the source code of this file.

Classes

struct  _l_daemon
 

Macros

#define LOGFILE_MAXBUFS   128
 
#define LOGFILE_BUFSZ   32768
 
#define LOGFILE_WARN_TIME   30
 

Typedefs

typedef struct _l_daemon l_daemon_t
 

Functions

static void logfile_mod_daemon_append (Logfile *lf, const char *buf, int len)
 
static void logfileNewBuffer (Logfile *lf)
 
static void logfileFreeBuffer (Logfile *lf, logfile_buffer_t *b)
 
static void logfileHandleWrite (int, void *data)
 
static void logfileQueueWrite (Logfile *lf)
 
static void logfileFlushEvent (void *data)
 
int logfile_mod_daemon_open (Logfile *lf, const char *path, size_t, int)
 
static void logfile_mod_daemon_close (Logfile *lf)
 
static void logfile_mod_daemon_rotate (Logfile *lf, const int16_t)
 
static void logfile_mod_daemon_writeline (Logfile *lf, const char *buf, size_t len)
 
static void logfile_mod_daemon_linestart (Logfile *lf)
 
static void logfile_mod_daemon_lineend (Logfile *lf)
 
static void logfile_mod_daemon_flush (Logfile *lf)
 

Variables

static LOGWRITE logfile_mod_daemon_writeline
 
static LOGLINESTART logfile_mod_daemon_linestart
 
static LOGLINEEND logfile_mod_daemon_lineend
 
static LOGROTATE logfile_mod_daemon_rotate
 
static LOGFLUSH logfile_mod_daemon_flush
 
static LOGCLOSE logfile_mod_daemon_close
 

Macro Definition Documentation

#define LOGFILE_BUFSZ   32768

Definition at line 33 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_append(), and logfileNewBuffer().

#define LOGFILE_MAXBUFS   128

Definition at line 27 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_writeline().

#define LOGFILE_WARN_TIME   30

Definition at line 36 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_writeline().

Typedef Documentation

typedef struct _l_daemon l_daemon_t

Definition at line 57 of file ModDaemon.cc.

Function Documentation

static void logfile_mod_daemon_flush ( Logfile lf)
static
static void logfile_mod_daemon_linestart ( Logfile lf)
static

Definition at line 307 of file ModDaemon.cc.

References assert, Logfile::data, _l_daemon::eol, and logfile_mod_daemon_append().

int logfile_mod_daemon_open ( Logfile lf,
const char *  path,
size_t  ,
int   
)

Definition at line 211 of file ModDaemon.cc.

Referenced by logfileOpen().

static void logfile_mod_daemon_rotate ( Logfile lf,
const int16_t   
)
static

Definition at line 273 of file ModDaemon.cc.

References DBG_IMPORTANT, debugs, logfile_mod_daemon_append(), and Logfile::path.

static void logfile_mod_daemon_writeline ( Logfile lf,
const char *  buf,
size_t  len 
)
static
static void logfileFlushEvent ( void *  data)
static

Definition at line 196 of file ModDaemon.cc.

References data, eventAdd(), and logfileQueueWrite().

Referenced by logfile_mod_daemon_close(), and logfile_mod_daemon_open().

static void logfileFreeBuffer ( Logfile lf,
logfile_buffer_t b 
)
static
static void logfileNewBuffer ( Logfile lf)
static

Variable Documentation

LOGCLOSE logfile_mod_daemon_close
static

Definition at line 43 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

LOGFLUSH logfile_mod_daemon_flush
static

Definition at line 42 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

LOGLINEEND logfile_mod_daemon_lineend
static

Definition at line 40 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

LOGLINESTART logfile_mod_daemon_linestart
static

Definition at line 39 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

LOGROTATE logfile_mod_daemon_rotate
static

Definition at line 41 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

LOGWRITE logfile_mod_daemon_writeline
static

Definition at line 38 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors