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

void logfileClose ( Logfile lf)
void logfileFlush ( Logfile lf)
void logfileLineEnd ( Logfile lf)

Definition at line 140 of file

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

Referenced by accessLogLogTo(), and storeLog().

void logfileRotate ( Logfile lf,
int16_t  rotateCount 

Definition at line 99 of file

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

Referenced by accessLogRotate(), icapLogRotate(), and storeLogRotate().

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

Definition at line 106 of file

References Logfile::f_linewrite.

Referenced by logfilePrintf().






Web Site Translations