A brief file description. More...
#include "libts.h"
#include "LogField.h"
Go to the source code of this file.
Data Structures | |
class | LogAccess |
Defines | |
#define | DEFAULT_STR "-" |
#define | DEFAULT_STR_LEN 1 |
#define | DEFAULT_INT_FIELD |
#define | DEFAULT_STR_FIELD |
#define | DEFAULT_IP_FIELD |
#define | MARSHAL_RECORD_LENGTH 32 |
Enumerations | |
enum | LogEntryType { LOG_ENTRY_HTTP = 0, LOG_ENTRY_ICP, N_LOG_ENTRY_TYPES } |
enum | LogFinishCodeType { LOG_FINISH_FIN = 0, LOG_FINISH_INTR, LOG_FINISH_TIMEOUT, N_LOG_FINISH_CODE_TYPES } |
enum | LogCacheWriteCodeType { LOG_CACHE_WRITE_NONE = 0, LOG_CACHE_WRITE_LOCK_MISSED, LOG_CACHE_WRITE_LOCK_ABORTED, LOG_CACHE_WRITE_ERROR, LOG_CACHE_WRITE_COMPLETE, N_LOG_CACHE_WRITE_TYPES } |
Functions | |
char * | resolve_logfield_string (LogAccess *context, const char *format_str) |
A brief file description.
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.
Definition in file LogAccess.h.
#define DEFAULT_INT_FIELD |
{\ if (buf) { \ int64_t i = 0; \ marshal_int (buf, i); \ } \ return INK_MIN_ALIGN; \ }
Definition at line 95 of file LogAccess.h.
#define DEFAULT_IP_FIELD |
{\ int len = sizeof(LogFieldIp); \ if (buf) { \ len = marshal_ip (buf, NULL); \ } \ return len; \ }
Definition at line 112 of file LogAccess.h.
#define DEFAULT_STR "-" |
Definition at line 92 of file LogAccess.h.
Referenced by LogAccess::strlen().
#define DEFAULT_STR_FIELD |
{\ char * str = NULL; \ int len = INK_MIN_ALIGN; \ if (buf) { \ marshal_str (buf, str, len); \ } \ return len; \ }
Definition at line 103 of file LogAccess.h.
#define DEFAULT_STR_LEN 1 |
Definition at line 93 of file LogAccess.h.
#define MARSHAL_RECORD_LENGTH 32 |
Definition at line 125 of file LogAccess.h.
LOG_CACHE_WRITE_NONE | |
LOG_CACHE_WRITE_LOCK_MISSED | |
LOG_CACHE_WRITE_LOCK_ABORTED | |
LOG_CACHE_WRITE_ERROR | |
LOG_CACHE_WRITE_COMPLETE | |
N_LOG_CACHE_WRITE_TYPES |
Definition at line 142 of file LogAccess.h.
enum LogEntryType |
Definition at line 127 of file LogAccess.h.
enum LogFinishCodeType |
Definition at line 134 of file LogAccess.h.
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().