File.h File Reference
#include "cbdata.h"
#include "dlink.h"
Include dependency graph for File.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  logfile_buffer_t
 
class  Logfile
 

Typedefs

typedef void LOGLINESTART(Logfile *)
 
typedef void LOGWRITE(Logfile *, const char *, size_t len)
 
typedef void LOGLINEEND(Logfile *)
 
typedef void LOGFLUSH(Logfile *)
 
typedef void LOGROTATE(Logfile *, const int16_t)
 
typedef void LOGCLOSE(Logfile *)
 

Functions

LogfilelogfileOpen (const char *path, size_t bufsz, int)
 
void logfileClose (Logfile *lf)
 
void logfileRotate (Logfile *lf, int16_t rotateCount)
 
void logfileWrite (Logfile *lf, const char *buf, size_t len)
 
void logfileFlush (Logfile *lf)
 
void logfilePrintf (Logfile *lf, const char *fmt,...) PRINTF_FORMAT_ARG2
 
void logfileLineStart (Logfile *lf)
 
void logfileLineEnd (Logfile *lf)
 

Typedef Documentation

◆ LOGCLOSE

typedef void LOGCLOSE(Logfile *)

Definition at line 36 of file File.h.

◆ LOGFLUSH

typedef void LOGFLUSH(Logfile *)

Definition at line 34 of file File.h.

◆ LOGLINEEND

typedef void LOGLINEEND(Logfile *)

Definition at line 33 of file File.h.

◆ LOGLINESTART

typedef void LOGLINESTART(Logfile *)

Definition at line 31 of file File.h.

◆ LOGROTATE

typedef void LOGROTATE(Logfile *, const int16_t)

Definition at line 35 of file File.h.

◆ LOGWRITE

typedef void LOGWRITE(Logfile *, const char *, size_t len)

Definition at line 32 of file File.h.

Function Documentation

◆ logfileClose()

void logfileClose ( Logfile lf)

◆ logfileFlush()

void logfileFlush ( Logfile lf)

◆ logfileLineEnd()

void logfileLineEnd ( Logfile lf)

Definition at line 132 of file File.cc.

References Logfile::f_lineend, and Logfile::sequence_number.

Referenced by accessLogLogTo(), Security::KeyLog::record(), and storeLog().

◆ logfileLineStart()

◆ logfileOpen()

◆ logfilePrintf()

◆ logfileRotate()

void logfileRotate ( Logfile lf,
int16_t  rotateCount 
)

Definition at line 101 of file File.cc.

References DBG_IMPORTANT, debugs, Logfile::f_rotate, and Logfile::path.

Referenced by icapLogRotate(), FormattedLog::rotate(), and storeLogRotate().

◆ logfileWrite()

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

Definition at line 108 of file File.cc.

References Logfile::f_linewrite.

Referenced by logfilePrintf().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors