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.


class  logfile_buffer_t
class  Logfile


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


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


typedef void LOGCLOSE(Logfile *)

Definition at line 36 of file File.h.


typedef void LOGFLUSH(Logfile *)

Definition at line 34 of file File.h.


typedef void LOGLINEEND(Logfile *)

Definition at line 33 of file File.h.


typedef void LOGLINESTART(Logfile *)

Definition at line 31 of file File.h.


typedef void LOGROTATE(Logfile *, const int16_t)

Definition at line 35 of file File.h.


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

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

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

References Logfile::f_linewrite.

Referenced by logfilePrintf().






Web Site Translations