class StoreEntry;
/* Should be in 'AccessLog.h' as the driver */
-extern void accessLogLogTo(customlog* log, AccessLogEntry::Pointer &al, ACLChecklist* checklist = NULL);
+extern void accessLogLogTo(CustomLog* log, AccessLogEntry::Pointer &al, ACLChecklist* checklist = NULL);
extern void accessLogLog(AccessLogEntry::Pointer &, ACLChecklist * checklist);
extern void accessLogRotate(void);
extern void accessLogClose(void);
struct {
char *store;
char *swap;
- customlog *accesslogs;
+ CustomLog *accesslogs;
#if ICAP_CLIENT
- customlog *icaplogs;
+ CustomLog *icaplogs;
#endif
int rotateNumber;
} Log;
void
icapLogOpen()
{
- customlog *log;
+ CustomLog *log;
for (log = Config.Log.icaplogs; log; log = log->next) {
if (log->type == Log::Format::CLF_NONE)
void
icapLogClose()
{
- customlog *log;
+ CustomLog *log;
for (log = Config.Log.icaplogs; log; log = log->next) {
if (log->logfile) {
void
icapLogRotate()
{
- for (customlog* log = Config.Log.icaplogs; log; log = log->next) {
+ for (CustomLog* log = Config.Log.icaplogs; log; log = log->next) {
if (log->logfile) {
logfileRotate(log->logfile);
}
static const char *const list_sep = ", \t\n\r";
-static void parse_access_log(customlog ** customlog_definitions);
-static int check_null_access_log(customlog *customlog_definitions);
-static void dump_access_log(StoreEntry * entry, const char *name, customlog * definitions);
-static void free_access_log(customlog ** definitions);
+static void parse_access_log(CustomLog ** customlog_definitions);
+static int check_null_access_log(CustomLog *customlog_definitions);
+static void dump_access_log(StoreEntry * entry, const char *name, CustomLog * definitions);
+static void free_access_log(CustomLog ** definitions);
static void update_maxobjsize(void);
static void configDoConfigure(void);
#include "AccessLogEntry.h"
static void
-parse_access_log(customlog ** logs)
+parse_access_log(CustomLog ** logs)
{
const char *filename, *logdef_name;
- customlog *cl = (customlog *)xcalloc(1, sizeof(*cl));
+ CustomLog *cl = (CustomLog *)xcalloc(1, sizeof(*cl));
if ((filename = strtok(NULL, w_space)) == NULL) {
self_destruct();
}
static int
-check_null_access_log(customlog *customlog_definitions)
+check_null_access_log(CustomLog *customlog_definitions)
{
return customlog_definitions == NULL;
}
static void
-dump_access_log(StoreEntry * entry, const char *name, customlog * logs)
+dump_access_log(StoreEntry * entry, const char *name, CustomLog * logs)
{
- customlog *log;
+ CustomLog *log;
for (log = logs; log; log = log->next) {
storeAppendPrintf(entry, "%s ", name);
}
static void
-free_access_log(customlog ** definitions)
+free_access_log(CustomLog ** definitions)
{
while (*definitions) {
- customlog *log = *definitions;
+ CustomLog *log = *definitions;
*definitions = log->next;
log->logFormat = NULL;
--- /dev/null
+/*
+ * SQUID Web Proxy Cache http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ * Squid is the result of efforts by numerous individuals from
+ * the Internet community; see the CONTRIBUTORS file for full
+ * details. Many organizations have provided support for Squid's
+ * development; see the SPONSORS file for full details. Squid is
+ * Copyrighted (C) 2001 by the Regents of the University of
+ * California; see the COPYRIGHT file for full details. Squid
+ * incorporates software developed and/or copyrighted by other
+ * sources; see the CREDITS file for full details.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+#include "squid.h"
+#include "CustomLog.h"
+
--- /dev/null
+#ifndef SQUID_CUSTOMLOG_H_
+#define SQUID_CUSTOMLOG_H_
+/*
+ * SQUID Web Proxy Cache http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ * Squid is the result of efforts by numerous individuals from
+ * the Internet community; see the CONTRIBUTORS file for full
+ * details. Many organizations have provided support for Squid's
+ * development; see the SPONSORS file for full details. Squid is
+ * Copyrighted (C) 2001 by the Regents of the University of
+ * California; see the COPYRIGHT file for full details. Squid
+ * incorporates software developed and/or copyrighted by other
+ * sources; see the CREDITS file for full details.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+class CustomLog_ {
+};
+
+#endif /* SQUID_CUSTOMLOG_H_ */
#include "MemBuf.h"
void
-Log::Format::SquidCustom(const AccessLogEntry::Pointer &al, customlog * log)
+Log::Format::SquidCustom(const AccessLogEntry::Pointer &al, CustomLog * log)
{
static MemBuf mb;
mb.reset();
void SquidReferer(const AccessLogEntryPointer &al, Logfile * logfile);
/// Log with a local custom format
-void SquidCustom(const AccessLogEntryPointer &al, customlog * log);
+void SquidCustom(const AccessLogEntryPointer &al, CustomLog * log);
/// Log with Apache httpd common format
void HttpdCommon(const AccessLogEntryPointer &al, Logfile * logfile);
ModTcp.cc \
ModTcp.h \
ModUdp.cc \
- ModUdp.h
+ ModUdp.h \
+ CustomLog.h \
+ CustomLog.cc
int LogfileStatus = LOG_DISABLE;
void
-accessLogLogTo(customlog* log, AccessLogEntry::Pointer &al, ACLChecklist * checklist)
+accessLogLogTo(CustomLog* log, AccessLogEntry::Pointer &al, ACLChecklist * checklist)
{
if (al->url == NULL)
void
accessLogRotate(void)
{
- customlog *log;
+ CustomLog *log;
#if USE_FORW_VIA_DB
fvdbClear();
void
accessLogClose(void)
{
- customlog *log;
+ CustomLog *log;
for (log = Config.Log.accesslogs; log; log = log->next) {
if (log->logfile) {
void
accessLogInit(void)
{
- customlog *log;
+ CustomLog *log;
accessLogRegisterWithCacheManager();
class RemovalPolicySettings;
class external_acl;
class Store;
-class customlog;
+class CustomLog;
class cachemgr_passwd;
class refresh_t;
namespace AnyP
#include "format/Format.h"
#include "log/Formats.h"
-class customlog {
+class CustomLog {
public:
char *filename;
ACLList *aclList;
Format::Format *logFormat;
Logfile *logfile;
- customlog *next;
+ CustomLog *next;
Log::Format::log_type type;
};