]> git.ipfire.org Git - thirdparty/squid.git/blame - src/log/CustomLog.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / log / CustomLog.h
CommitLineData
87ddff6e 1/*
77b1029d 2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
87ddff6e 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.
87ddff6e 7 */
bbc27441
AJ
8
9#ifndef SQUID_CUSTOMLOG_H_
10#define SQUID_CUSTOMLOG_H_
11
6f58d7d7 12#include "acl/forward.h"
8f645002 13#include "log/Formats.h"
87ddff6e 14
8f645002 15class Logfile;
e4a14600
A
16namespace Format
17{
e0bd1c91
FC
18class Format;
19}
8f645002 20
efc23871 21/// representation of a custom log directive.
1b2f0924
FC
22class CustomLog
23{
8f645002 24public:
8566b13e
AJ
25 /// \returns whether the daemon module is used for this log
26 bool usesDaemon() const;
27
8f645002
FC
28 char *filename;
29 ACLList *aclList;
30 Format::Format *logFormat;
31 Logfile *logfile;
32 CustomLog *next;
33 Log::Format::log_type type;
fb0c2f17
NH
34 /// how much to buffer before dropping or dying (access_log buffer-size)
35 size_t bufferSize;
36 /// whether unrecoverable errors (e.g., dropping a log record) kill worker
37 bool fatal;
efc23871
AJ
38 /// How many log files to retain when rotating. Default: obey logfile_rotate
39 int16_t rotateCount;
87ddff6e
FC
40};
41
42#endif /* SQUID_CUSTOMLOG_H_ */
f53969cc 43