]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/icap/icap_log.cc
3 #include "AccessLogEntry.h"
5 int IcapLogfileStatus
= LOG_DISABLE
;
12 for (log
= Config
.Log
.icaplogs
; log
; log
= log
->next
) {
13 if (log
->type
== CLF_NONE
)
16 if (log
->type
== CLF_AUTO
)
17 log
->type
= CLF_ICAP_SQUID
;
19 log
->logfile
= logfileOpen(log
->filename
, MAX_URL
<< 1, 1);
21 IcapLogfileStatus
= LOG_ENABLE
;
30 for (log
= Config
.Log
.icaplogs
; log
; log
= log
->next
) {
32 logfileClose(log
->logfile
);
41 for (customlog
* log
= Config
.Log
.icaplogs
; log
; log
= log
->next
) {
43 logfileRotate(log
->logfile
);
48 void icapLogLog(AccessLogEntry
*al
, ACLChecklist
* checklist
)
50 if (IcapLogfileStatus
== LOG_ENABLE
)
51 accessLogLogTo(Config
.Log
.icaplogs
, al
, checklist
);