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 | |
Logfile * | logfileOpen (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
◆ LOGFLUSH
◆ LOGLINEEND
◆ LOGLINESTART
◆ LOGROTATE
◆ LOGWRITE
Function Documentation
◆ logfileClose()
void logfileClose | ( | Logfile * | lf | ) |
Definition at line 92 of file File.cc.
References debugs, Logfile::f_close, Logfile::f_flush, Important, and Logfile::path.
Referenced by accessLogClose(), FormattedLog::close(), icapLogClose(), netdbSaveState(), and storeLogClose().
◆ logfileFlush()
void logfileFlush | ( | Logfile * | lf | ) |
Definition at line 139 of file File.cc.
References Logfile::f_flush.
Referenced by logfile_mod_daemon_close(), logfile_mod_stdio_rotate(), and logfile_mod_stdio_writeline().
◆ 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()
void logfileLineStart | ( | Logfile * | lf | ) |
Definition at line 126 of file File.cc.
References Logfile::f_linestart, Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), Log::Format::SquidCustom(), Log::Format::SquidIcap(), Log::Format::SquidNative(), Log::Format::SquidReferer(), Log::Format::SquidUserAgent(), and STUB.
Referenced by accessLogLogTo(), Security::KeyLog::record(), and storeLog().
◆ logfileOpen()
Definition at line 40 of file File.cc.
References debugs, Important, logfile_mod_daemon_open(), logfile_mod_stdio_open(), logfile_mod_syslog_open(), logfile_mod_udp_open(), and Log::TcpLogger::Open().
Referenced by accessLogInit(), icapLogOpen(), netdbSaveState(), FormattedLog::open(), and storeLogOpen().
◆ logfilePrintf()
void logfilePrintf | ( | Logfile * | lf, |
const char * | fmt, | ||
... | |||
) |
Definition at line 114 of file File.cc.
References SBuf::c_str(), SBuf::clear(), SBuf::length(), logfileWrite(), and SBuf::vappendf().
Referenced by Log::Format::HttpdCombined(), Log::Format::HttpdCommon(), netdbSaveState(), Security::KeyLog::record(), Log::Format::SquidCustom(), Log::Format::SquidIcap(), Log::Format::SquidNative(), Log::Format::SquidReferer(), Log::Format::SquidUserAgent(), and storeLog().
◆ 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()
Definition at line 108 of file File.cc.
References Logfile::f_linewrite.
Referenced by logfilePrintf().