]>
Commit | Line | Data |
---|---|---|
20efa1c2 | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
20efa1c2 | 3 | * |
bbc27441 AJ |
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. | |
20efa1c2 AJ |
7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 46 Access Log - Squid Custom format */ |
10 | ||
f7f3304a | 11 | #include "squid.h" |
20efa1c2 | 12 | #include "AccessLogEntry.h" |
c6983ec7 | 13 | #include "format/Format.h" |
8f645002 | 14 | #include "log/CustomLog.h" |
20efa1c2 AJ |
15 | #include "log/File.h" |
16 | #include "log/Formats.h" | |
20efa1c2 | 17 | #include "MemBuf.h" |
20efa1c2 AJ |
18 | |
19 | void | |
87ddff6e | 20 | Log::Format::SquidCustom(const AccessLogEntry::Pointer &al, CustomLog * log) |
20efa1c2 | 21 | { |
20efa1c2 | 22 | static MemBuf mb; |
20efa1c2 AJ |
23 | mb.reset(); |
24 | ||
38e16f92 AJ |
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); | |
20efa1c2 | 27 | |
38e16f92 | 28 | logfilePrintf(log->logfile, "%s\n", mb.buf); |
20efa1c2 | 29 | } |
f53969cc | 30 |