CustomLog.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 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 #ifndef SQUID_CUSTOMLOG_H_
10 #define SQUID_CUSTOMLOG_H_
11 
12 #include "acl/forward.h"
13 #include "log/Formats.h"
14 
15 class Logfile;
16 namespace Format
17 {
18 class Format;
19 }
20 
22 class CustomLog
23 {
24 public:
26  bool usesDaemon() const;
27 
28  char *filename;
35  size_t bufferSize;
37  bool fatal;
39  int16_t rotateCount;
40 };
41 
42 #endif /* SQUID_CUSTOMLOG_H_ */
43 
representation of a custom log directive.
Definition: CustomLog.h:22
int16_t rotateCount
How many log files to retain when rotating. Default: obey logfile_rotate.
Definition: CustomLog.h:39
Definition: File.h:38
Format(const char *name)
Definition: Format.cc:41
#define ACLList
Definition: forward.h:45
Log::Format::log_type type
Definition: CustomLog.h:33
Logfile * logfile
Definition: CustomLog.h:31
size_t bufferSize
how much to buffer before dropping or dying (access_log buffer-size)
Definition: CustomLog.h:35
CustomLog * next
Definition: CustomLog.h:32
ACLList * aclList
Definition: CustomLog.h:29
char * filename
Definition: CustomLog.h:28
Format::Format * logFormat
Definition: CustomLog.h:30
bool usesDaemon() const
Definition: CustomLog.cc:14
bool fatal
whether unrecoverable errors (e.g., dropping a log record) kill worker
Definition: CustomLog.h:37

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors