#include <LogFormat.h>

| Public Member Functions | |
| LogFormat (const char *name, const char *format_str, unsigned interval_sec=0) | |
| LogFormat (const char *name, const char *fieldlist_str, const char *printf_str, unsigned interval_sec=0) | |
| LogFormat (const LogFormat &rhs) | |
| ~LogFormat () | |
| void | display (FILE *fd=stdout) | 
| void | displayAsXML (FILE *fd=stdout) | 
| bool | valid () const | 
| char * | name () const | 
| char * | fieldlist () const | 
| char * | format_string () const | 
| int32_t | name_id () const | 
| unsigned | fieldlist_id () const | 
| LogFormatType | type () const | 
| char * | printf_str () const | 
| bool | is_aggregate () const | 
| unsigned | field_count () const | 
| long | interval () const | 
| LINK (LogFormat, link) | |
| Static Public Member Functions | |
| static int32_t | id_from_name (const char *name) | 
| static LogFormat * | format_from_specification (char *spec, char **file_name, char **file_header, LogFileFormat *file_type) | 
| static int | parse_symbol_string (const char *symbol_string, LogFieldList *field_list, bool *contains_aggregates) | 
| static int | parse_format_string (const char *format_str, char **printf_str, char **fields_str) | 
| static int | parse_escape_string (const char *str, int len) | 
| static void | turn_tagging_on () | 
| static void | turn_tagging_off () | 
| Data Fields | |
| LogFieldList | m_field_list | 
| long | m_interval_sec | 
| long | m_interval_next | 
| char * | m_agg_marshal_space | 
Definition at line 56 of file LogFormat.h.
| LogFormat::LogFormat | ( | const char * | name, | |
| const char * | format_str, | |||
| unsigned | interval_sec = 0 | |||
| ) | 
Definition at line 181 of file LogFormat.cc.
References LOG_FORMAT_CUSTOM, and LogFormat().
Referenced by LogFormat().
| LogFormat::LogFormat | ( | const char * | name, | |
| const char * | fieldlist_str, | |||
| const char * | printf_str, | |||
| unsigned | interval_sec = 0 | |||
| ) | 
Definition at line 210 of file LogFormat.cc.
References LogFormat().
| LogFormat::LogFormat | ( | const LogFormat & | rhs | ) | 
Definition at line 234 of file LogFormat.cc.
References ats_strdup, LOG_FORMAT_TEXT, LogFormat(), and m_interval_sec.
| LogFormat::~LogFormat | ( | ) | 
Definition at line 263 of file LogFormat.cc.
References ats_free(), and m_agg_marshal_space.
| void LogFormat::display | ( | FILE * | fd = stdout | ) | 
Definition at line 753 of file LogFormat.cc.
References LogFieldList::display(), and m_field_list.
| void LogFormat::displayAsXML | ( | FILE * | fd = stdout | ) | 
Definition at line 777 of file LogFormat.cc.
References m_interval_sec, and valid().
Referenced by LogObject::displayAsXML().
| unsigned LogFormat::field_count | ( | ) | const  [inline] | 
Definition at line 77 of file LogFormat.h.
Referenced by LogObject::log(), parse_format_string(), and parse_symbol_string().
| char* LogFormat::fieldlist | ( | ) | const  [inline] | 
Definition at line 70 of file LogFormat.h.
Referenced by LogObject::compute_signature().
| unsigned LogFormat::fieldlist_id | ( | ) | const  [inline] | 
Definition at line 73 of file LogFormat.h.
| LogFormat * LogFormat::format_from_specification | ( | char * | spec, | |
| char ** | file_name, | |||
| char ** | file_header, | |||
| LogFileFormat * | file_type | |||
| ) |  [static] | 
Definition at line 286 of file LogFormat.cc.
References ats_strdup, Debug, SimpleTokenizer::getNext(), SimpleTokenizer::getRest(), ink_assert, and valid().
| char* LogFormat::format_string | ( | ) | const  [inline] | 
Definition at line 71 of file LogFormat.h.
Referenced by LogObject::get_format_string().
| int32_t LogFormat::id_from_name | ( | const char * | name | ) |  [static] | 
Definition at line 105 of file LogFormat.cc.
References ats::CryptoHash::fold().
Referenced by LogObjectManager::find_by_format_name().
| long LogFormat::interval | ( | ) | const  [inline] | 
Definition at line 78 of file LogFormat.h.
References m_interval_sec.
| bool LogFormat::is_aggregate | ( | ) | const  [inline] | 
Definition at line 76 of file LogFormat.h.
Referenced by LogObject::log().
| LogFormat::LINK | ( | LogFormat | , | |
| link | ||||
| ) | 
| char* LogFormat::name | ( | ) | const  [inline] | 
Definition at line 69 of file LogFormat.h.
Referenced by Log::collate_thread_main(), LogObject::display(), and LogObject::displayAsXML().
| int32_t LogFormat::name_id | ( | ) | const  [inline] | 
Definition at line 72 of file LogFormat.h.
| int LogFormat::parse_escape_string | ( | const char * | str, | |
| int | len | |||
| ) |  [static] | 
Definition at line 575 of file LogFormat.cc.
References a, start, and Warning.
Referenced by parse_format_string().
| int LogFormat::parse_format_string | ( | const char * | format_str, | |
| char ** | printf_str, | |||
| char ** | fields_str | |||
| ) |  [static] | 
Definition at line 642 of file LogFormat.cc.
References ats_malloc(), Debug, field_count(), ink_assert, memcpy, parse_escape_string(), and start.
Referenced by resolve_logfield_string(), and LogBuffer::to_ascii().
| int LogFormat::parse_symbol_string | ( | const char * | symbol_string, | |
| LogFieldList * | field_list, | |||
| bool * | contains_aggregates | |||
| ) |  [static] | 
Definition at line 430 of file LogFormat.cc.
References LogFieldList::add(), ats_free(), ats_strdup, Debug, LogField::eCOUNT, field_count(), LogFieldList::find_by_symbol(), Log::global_field_list, ink_assert, LogSlice::m_enable, LogSlice::m_end, LogField::m_slice, LogSlice::m_start, LogField::NO_AGGREGATE, LogField::NO_CONTAINER, Note, LogField::set_aggregate_op(), LogField::type(), LogField::valid_aggregate_name(), and LogField::valid_container_name().
Referenced by parse_log_buff(), resolve_logfield_string(), and LogBuffer::to_ascii().
| char* LogFormat::printf_str | ( | ) | const  [inline] | 
Definition at line 75 of file LogFormat.h.
Referenced by LogObject::compute_signature().
| static void LogFormat::turn_tagging_off | ( | ) |  [inline, static] | 
Definition at line 90 of file LogFormat.h.
| static void LogFormat::turn_tagging_on | ( | ) |  [inline, static] | 
Definition at line 89 of file LogFormat.h.
| LogFormatType LogFormat::type | ( | ) | const  [inline] | 
Definition at line 74 of file LogFormat.h.
| bool LogFormat::valid | ( | ) | const  [inline] | 
Definition at line 68 of file LogFormat.h.
Referenced by displayAsXML(), format_from_specification(), and Log::match_logobject().
Definition at line 100 of file LogFormat.h.
Referenced by LogObject::log(), and ~LogFormat().
Definition at line 97 of file LogFormat.h.
Referenced by display(), and LogObject::log().
Definition at line 99 of file LogFormat.h.
Referenced by LogObject::log().
Definition at line 98 of file LogFormat.h.
Referenced by displayAsXML(), interval(), LogObject::log(), and LogFormat().
 1.7.1
 1.7.1