class StoreEntry;
/* Should be in 'AccessLog.h' as the driver */
-void accessLogLogTo(CustomLog* log, AccessLogEntry::Pointer &al, ACLChecklist* checklist = NULL);
-void accessLogLog(AccessLogEntry::Pointer &, ACLChecklist * checklist);
+void accessLogLogTo(CustomLog *, const AccessLogEntryPointer &, ACLChecklist *checklist = nullptr);
+void accessLogLog(const AccessLogEntryPointer &, ACLChecklist *);
void accessLogRotate(void);
void accessLogClose(void);
void accessLogInit(void);
bool
Adaptation::AccessCheck::Start(Method method, VectPoint vp,
HttpRequest *req, HttpReply *rep,
- AccessLogEntry::Pointer &al, Adaptation::Initiator *initiator)
+ const AccessLogEntryPointer &al, Adaptation::Initiator *initiator)
{
if (Config::Enabled) {
#ifndef SQUID_ADAPTATION__ACCESS_CHECK_H
#define SQUID_ADAPTATION__ACCESS_CHECK_H
-#include "AccessLogEntry.h"
#include "acl/Acl.h"
#include "adaptation/Elements.h"
#include "adaptation/forward.h"
#include "adaptation/Initiator.h"
#include "adaptation/ServiceFilter.h"
#include "base/AsyncJob.h"
+#include "log/forward.h"
class HttpRequest;
class HttpReply;
// use this to start async ACL checks; returns true if started
static bool Start(Method method, VectPoint vp, HttpRequest *req,
- HttpReply *rep, AccessLogEntry::Pointer &al, Adaptation::Initiator *initiator);
+ HttpReply *, const AccessLogEntryPointer &, Adaptation::Initiator *);
protected:
// use Start to start adaptation checks
Adaptation::Iterator::Iterator(
Http::Message *aMsg, HttpRequest *aCause,
- AccessLogEntry::Pointer &alp,
+ const AccessLogEntryPointer &alp,
const ServiceGroupPointer &aGroup):
AsyncJob("Iterator"),
Adaptation::Initiate("Iterator"),
#ifndef SQUID_ADAPTATION__ITERATOR_H
#define SQUID_ADAPTATION__ITERATOR_H
-#include "AccessLogEntry.h"
#include "adaptation/Initiate.h"
#include "adaptation/Initiator.h"
#include "adaptation/ServiceGroups.h"
#include "http/forward.h"
+#include "log/forward.h"
namespace Adaptation
{
public:
Iterator(Http::Message *virginHeader, HttpRequest *virginCause,
- AccessLogEntry::Pointer &alp,
+ const AccessLogEntryPointer &,
const Adaptation::ServiceGroupPointer &aGroup);
virtual ~Iterator();
ServicePlan thePlan; ///< which services to use and in what order
Http::Message *theMsg; ///< the message being adapted (virgin for each step)
HttpRequest *theCause; ///< the cause of the original virgin message
- AccessLogEntry::Pointer al; ///< info for the future access.log entry
+ AccessLogEntryPointer al; ///< info for the future access.log entry
CbcPointer<Adaptation::Initiate> theLauncher; ///< current transaction launcher
int iterations; ///< number of steps initiated
bool adapted; ///< whether the virgin message has been replaced
Adaptation::Icap::Xaction::swanSong();
}
-void prepareLogWithRequestDetails(HttpRequest *, AccessLogEntry::Pointer &);
+void prepareLogWithRequestDetails(HttpRequest *, const AccessLogEntryPointer &);
void Adaptation::Icap::ModXact::finalizeLogInfo()
{
static void clientUpdateStatCounters(const LogTags &logType);
static void clientUpdateHierCounters(HierarchyLogEntry *);
static bool clientPingHasFinished(ping_data const *aPing);
-void prepareLogWithRequestDetails(HttpRequest *, AccessLogEntry::Pointer &);
+void prepareLogWithRequestDetails(HttpRequest *, const AccessLogEntryPointer &);
static void ClientSocketContextPushDeferredIfNeeded(Http::StreamPointer deferredRequest, ConnStateData * conn);
char *skipLeadingSpace(char *aString);
}
void
-prepareLogWithRequestDetails(HttpRequest * request, AccessLogEntry::Pointer &aLogEntry)
+prepareLogWithRequestDetails(HttpRequest *request, const AccessLogEntryPointer &aLogEntry)
{
assert(request);
assert(aLogEntry != NULL);
uri(NULL),
log_uri(NULL),
req_sz(0),
+ al(new AccessLogEntry()),
calloutContext(NULL),
maxReplyBodySize_(0),
entry_(NULL),
, request_satisfaction_offset(0)
#endif
{
- al = new AccessLogEntry;
CodeContext::Reset(al);
al->cache.start_time = current_time;
if (aConn) {
#ifndef SQUID_CLIENTSIDEREQUEST_H
#define SQUID_CLIENTSIDEREQUEST_H
-#include "AccessLogEntry.h"
#include "acl/forward.h"
#include "client_side.h"
#include "clientStream.h"
#include "http/forward.h"
#include "HttpHeaderRange.h"
+#include "log/forward.h"
#include "LogTags.h"
#include "Store.h"
// NP: still an enum so each stage altering it must take care when replacing it.
LogTags logType;
- AccessLogEntry::Pointer al; ///< access.log entry
+ const AccessLogEntryPointer al; ///< access.log entry
struct Flags {
Flags() : accel(false), internal(false), done_copying(false) {}
#include "HttpReply.h"
#include "HttpRequest.h"
#include "ip/Address.h"
+#include "log/forward.h"
#include "MemBuf.h"
#include "profiler/Profiler.h"
#include "SquidConfig.h"
/* don't touch incoming, it's a pointer into buffered anyway */
}
-ErrorState *clientBuildError(err_type, Http::StatusCode, char const *, const ConnStateData *, HttpRequest *, const AccessLogEntry::Pointer &);
+ErrorState *clientBuildError(err_type, Http::StatusCode, char const *, const ConnStateData *, HttpRequest *, const AccessLogEntryPointer &);
/* This can ONLY be used before we have sent *any* data to the client */
void
int LogfileStatus = LOG_DISABLE;
void
-accessLogLogTo(CustomLog* log, AccessLogEntry::Pointer &al, ACLChecklist * checklist)
+accessLogLogTo(CustomLog *log, const AccessLogEntryPointer &al, ACLChecklist *checklist)
{
if (al->url.isEmpty())
}
void
-accessLogLog(AccessLogEntry::Pointer &al, ACLChecklist * checklist)
+accessLogLog(const AccessLogEntryPointer &al, ACLChecklist *checklist)
{
if (LogfileStatus != LOG_ENABLE)
return;
/* DEBUG: section 18 Cache Manager Statistics */
#include "squid.h"
+#include "AccessLogEntry.h"
#include "CacheDigest.h"
#include "CachePeer.h"
#include "client_side.h"
AccessLogEntry::SslDetails::SslDetails() {STUB}
#endif
*/
-void accessLogLogTo(CustomLog *, AccessLogEntry::Pointer &, ACLChecklist *) STUB
-void accessLogLog(AccessLogEntry::Pointer &, ACLChecklist *) STUB
+void accessLogLogTo(CustomLog *, const AccessLogEntry::Pointer &, ACLChecklist *) STUB
+void accessLogLog(const AccessLogEntry::Pointer &, ACLChecklist *) STUB
void accessLogRotate(void) STUB
void accessLogClose(void) STUB
void accessLogInit(void) STUB