This file implements the LogAccess class. More...
#include "libts.h"
#include "Error.h"
#include "HTTP.h"
#include "P_Net.h"
#include "P_Cache.h"
#include "I_Machine.h"
#include "LogAccess.h"
#include "LogField.h"
#include "LogFilter.h"
#include "LogUtils.h"
#include "LogFormat.h"
#include "LogObject.h"
#include "LogConfig.h"
#include "LogBuffer.h"
#include "Log.h"
Go to the source code of this file.
Defines | |
#define | LOG_INTEGER RECD_INT |
#define | LOG_COUNTER RECD_COUNTER |
#define | LOG_FLOAT RECD_FLOAT |
#define | LOG_STRING RECD_STRING |
Functions | |
char * | resolve_logfield_string (LogAccess *context, const char *format_str) |
This file implements the LogAccess class.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This file implements the LogAccess class. However, LogAccess is an abstract base class, providing an interface that logging uses to get information from a module, such as HTTP or ICP. Each module derives a specific implementation from this base class (such as LogAccessHttp), and implements the virtual accessor functions there.
The LogAccess class also defines a set of static functions that are used to provide support for marshalling and unmarshalling support for the other LogAccess derived classes.
Definition in file LogAccess.cc.
#define LOG_COUNTER RECD_COUNTER |
Referenced by LogAccess::marshal_record().
#define LOG_FLOAT RECD_FLOAT |
Referenced by LogAccess::marshal_record().
#define LOG_INTEGER RECD_INT |
Referenced by LogAccess::marshal_record().
#define LOG_STRING RECD_STRING |
Referenced by LogAccess::marshal_record().
char* resolve_logfield_string | ( | LogAccess * | context, | |
const char * | format_str | |||
) |
Definition at line 1362 of file LogAccess.cc.
References ats_free(), ats_malloc(), ats_strdup, Debug, Error, fields, LogAccess::init(), ink_assert, LOG_SEGMENT_VERSION, LogFieldList::marshal(), LogFieldList::marshal_len(), LogFormat::parse_format_string(), LogFormat::parse_symbol_string(), LogBuffer::resolve_custom_entry(), and LogUtils::timestamp().
Referenced by HttpBodyTemplate::build_instantiated_buffer().