Config.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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_SRC_LOG_CONFIG_H
10 #define SQUID_SRC_LOG_CONFIG_H
11 
12 #include "format/Format.h"
13 
14 class StoreEntry;
15 
16 namespace Log
17 {
18 
19 class LogConfig
20 {
21 public:
22  void parseFormats();
23  void dumpFormats(StoreEntry *e, const char *name) {
24  logformats->dump(e, name);
25  }
26 
29 
32 
33 #if USE_ADAPTATION
35 #endif
36 
37 #if ICAP_CLIENT
39 #endif
40 };
41 
42 extern LogConfig TheConfig;
43 
44 } // namespace Log
45 
46 // Legacy parsing wrappers
47 #define parse_logformat(X) (X)->parseFormats()
48 #define free_logformat(X) do{ delete (*X).logformats; (*X).logformats=NULL; }while(false)
49 #define dump_logformat(E,N,D) (D).dumpFormats((E),(N))
50 
51 #endif
52 
void parseFormats()
Definition: Config.cc:18
bool hasAdaptToken
Definition: Config.h:34
char * logfile_daemon
File path to logging daemon executable.
Definition: Config.h:28
::Format::Format * logformats
Linked list of custom log formats.
Definition: Config.h:31
bool hasIcapToken
Definition: Config.h:38
hbase_f Log
Definition: StatHist.cc:21
void dumpFormats(StoreEntry *e, const char *name)
Definition: Config.h:23
LogConfig TheConfig
Definition: Config.cc:15
void dump(StoreEntry *entry, const char *directiveName, bool eol=true) const
dump this whole list of formats into the provided StoreEntry
Definition: Format.cc:98

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors