Public Member Functions | Static Public Member Functions | Data Fields

LogFormat Class Reference

#include <LogFormat.h>

Collaboration diagram for LogFormat:
Collaboration graph
[legend]

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 LogFormatformat_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

Detailed Description

Definition at line 56 of file LogFormat.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
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]
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]
int LogFormat::parse_symbol_string ( const char *  symbol_string,
LogFieldList field_list,
bool *  contains_aggregates 
) [static]
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().


Field Documentation

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().


The documentation for this class was generated from the following files: