FormatSquidCustom.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9/* DEBUG: section 46 Access Log - Squid Custom format */
10
11#include "squid.h"
12#include "AccessLogEntry.h"
13#include "format/Format.h"
14#include "log/CustomLog.h"
15#include "log/File.h"
16#include "log/Formats.h"
17#include "MemBuf.h"
18
19void
21{
22 static MemBuf mb;
23 mb.reset();
24
25 // XXX: because we do not yet have a neutral form of transaction slab. use AccessLogEntry
26 log->logFormat->assemble(mb, al, log->logfile->sequence_number);
27
28 logfilePrintf(log->logfile, "%s\n", mb.buf);
29}
30
void log(char *format,...)
Definition: MemBuf.h:24
char * buf
Definition: MemBuf.h:134
void reset()
Definition: MemBuf.cc:129
void logfilePrintf(Logfile *lf, const char *fmt,...)
Definition: File.cc:114
void SquidCustom(const AccessLogEntryPointer &al, CustomLog *log)
Log with a local custom format.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors