]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/icap/icap_log.cc
3 #include "AccessLogEntry.h"
5 #include "log/Formats.h"
7 int IcapLogfileStatus
= LOG_DISABLE
;
14 for (log
= Config
.Log
.icaplogs
; log
; log
= log
->next
) {
15 if (log
->type
== Log::Format::CLF_NONE
)
18 log
->logfile
= logfileOpen(log
->filename
, MAX_URL
<< 1, 1);
20 IcapLogfileStatus
= LOG_ENABLE
;
29 for (log
= Config
.Log
.icaplogs
; log
; log
= log
->next
) {
31 logfileClose(log
->logfile
);
40 for (customlog
* log
= Config
.Log
.icaplogs
; log
; log
= log
->next
) {
42 logfileRotate(log
->logfile
);
47 void icapLogLog(AccessLogEntry
*al
, ACLChecklist
* checklist
)
49 if (IcapLogfileStatus
== LOG_ENABLE
)
50 accessLogLogTo(Config
.Log
.icaplogs
, al
, checklist
);