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 <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

◆ LOGFILE_BUFSZ

#define LOGFILE_BUFSZ   32768

Definition at line 32 of file ModDaemon.cc.

◆ LOGFILE_MAXBUFS

#define LOGFILE_MAXBUFS   128

Definition at line 26 of file ModDaemon.cc.

◆ LOGFILE_WARN_TIME

#define LOGFILE_WARN_TIME   30

Definition at line 35 of file ModDaemon.cc.

Typedef Documentation

◆ l_daemon_t

typedef struct _l_daemon l_daemon_t

Definition at line 56 of file ModDaemon.cc.

Function Documentation

◆ logfile_mod_daemon_append()

static void logfile_mod_daemon_append ( Logfile lf,
const char *  buf,
int  len 
)
static

◆ logfile_mod_daemon_close()

◆ logfile_mod_daemon_flush()

static void logfile_mod_daemon_flush ( Logfile lf)
static

◆ logfile_mod_daemon_lineend()

◆ logfile_mod_daemon_linestart()

static void logfile_mod_daemon_linestart ( Logfile lf)
static

Definition at line 312 of file ModDaemon.cc.

References assert, Logfile::data, and _l_daemon::eol.

◆ logfile_mod_daemon_open()

◆ logfile_mod_daemon_rotate()

static void logfile_mod_daemon_rotate ( Logfile lf,
const int16_t   
)
static

Definition at line 272 of file ModDaemon.cc.

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

◆ logfile_mod_daemon_writeline()

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

◆ logfileFlushEvent()

static void logfileFlushEvent ( void *  data)
static

◆ logfileFreeBuffer()

static void logfileFreeBuffer ( Logfile lf,
logfile_buffer_t b 
)
static

◆ logfileHandleWrite()

◆ logfileNewBuffer()

static void logfileNewBuffer ( Logfile lf)
static

◆ logfileQueueWrite()

Variable Documentation

◆ logfile_mod_daemon_close

LOGCLOSE logfile_mod_daemon_close
static

Definition at line 42 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

◆ logfile_mod_daemon_flush

LOGFLUSH logfile_mod_daemon_flush
static

Definition at line 41 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

◆ logfile_mod_daemon_lineend

LOGLINEEND logfile_mod_daemon_lineend
static

Definition at line 39 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

◆ logfile_mod_daemon_linestart

LOGLINESTART logfile_mod_daemon_linestart
static

Definition at line 38 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

◆ logfile_mod_daemon_rotate

LOGROTATE logfile_mod_daemon_rotate
static

Definition at line 40 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

◆ logfile_mod_daemon_writeline

LOGWRITE logfile_mod_daemon_writeline
static

Definition at line 37 of file ModDaemon.cc.

Referenced by logfile_mod_daemon_open().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors