Data Structures | Defines | Enumerations | Functions

LogAccess.h File Reference

A brief file description. More...

#include "libts.h"
#include "LogField.h"
Include dependency graph for LogAccess.h:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

A brief file description.

License

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 Documentation

#define DEFAULT_INT_FIELD
Value:
{\
    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
Value:
{\
    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
Value:
{\
    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.


Enumeration Type Documentation

Enumerator:
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.

Enumerator:
LOG_ENTRY_HTTP 
LOG_ENTRY_ICP 
N_LOG_ENTRY_TYPES 

Definition at line 127 of file LogAccess.h.

Enumerator:
LOG_FINISH_FIN 
LOG_FINISH_INTR 
LOG_FINISH_TIMEOUT 
N_LOG_FINISH_CODE_TYPES 

Definition at line 134 of file LogAccess.h.


Function Documentation

char* resolve_logfield_string ( LogAccess context,
const char *  format_str 
)