Public Member Functions | Static Public Member Functions | Data Fields

LogConfig Class Reference

#include <LogConfig.h>

Collaboration diagram for LogConfig:
Collaboration graph
[legend]

Public Member Functions

 LogConfig ()
 ~LogConfig ()
void init (LogConfig *previous_config=0)
void display (FILE *fd=stdout)
void setup_log_objects ()
bool space_to_write (int64_t bytes_to_write)
bool am_collation_host () const
bool space_is_short ()
void increment_space_used (int bytes)
void update_space_used ()
void read_configuration_variables ()
int get_max_space_mb ()
void transfer_objects (LogConfig *old_config)
bool has_api_objects () const

Static Public Member Functions

static void register_configs ()
static int reconfigure (const char *name, RecDataT data_type, RecData data, void *cookie)
static void register_config_callbacks ()
static void register_stat_callbacks ()
static void register_mgmt_callbacks ()
static void * reconfigure_mgmt_variables (void *token, char *data_raw, int data_len)

Data Fields

bool initialized
bool reconfiguration_needed
bool logging_space_exhausted
int64_t m_space_used
int64_t m_partition_space_left
bool roll_log_files_now
LogObjectManager log_object_manager
LogFilterList global_filter_list
LogFormatList global_format_list
int log_buffer_size
int max_secs_per_buffer
int max_space_mb_for_logs
int max_space_mb_for_orphan_logs
int max_space_mb_headroom
int logfile_perm
bool squid_log_enabled
bool squid_log_is_ascii
bool common_log_enabled
bool common_log_is_ascii
bool extended_log_enabled
bool extended_log_is_ascii
bool extended2_log_enabled
bool extended2_log_is_ascii
bool separate_icp_logs
bool separate_host_logs
int collation_mode
int collation_port
bool collation_host_tagged
int collation_preproc_threads
int collation_retry_sec
int collation_max_send_buffers
Log::RollingEnabledValues rolling_enabled
int rolling_interval_sec
int rolling_offset_hr
int rolling_size_mb
bool auto_delete_rolled_files
bool custom_logs_enabled
bool search_log_enabled
int search_rolling_interval_sec
unsigned int search_server_ip_addr
int search_server_port
int search_top_sites
char * search_log_filters
char * search_url_filter
char * search_log_file_one
char * search_log_file_two
int sampling_frequency
int file_stat_frequency
int space_used_frequency
int ascii_buffer_size
int max_line_size
char * hostname
char * logfile_dir
char * squid_log_name
char * squid_log_header
char * common_log_name
char * common_log_header
char * extended_log_name
char * extended_log_header
char * extended2_log_name
char * extended2_log_header
char * collation_host
char * collation_secret
char * xml_config_file
char * hosts_config_file

Detailed Description

Definition at line 108 of file LogConfig.h.


Constructor & Destructor Documentation

LogConfig::LogConfig (  ) 

Definition at line 527 of file LogConfig.cc.

LogConfig::~LogConfig (  ) 

Member Function Documentation

bool LogConfig::am_collation_host (  )  const [inline]

Definition at line 129 of file LogConfig.h.

References collation_mode.

void LogConfig::display ( FILE *  fd = stdout  ) 
int LogConfig::get_max_space_mb (  )  [inline]

Definition at line 143 of file LogConfig.h.

References max_space_mb_for_logs, and max_space_mb_for_orphan_logs.

Referenced by space_to_write(), and update_space_used().

bool LogConfig::has_api_objects (  )  const [inline]

Definition at line 151 of file LogConfig.h.

References LogObjectManager::has_api_objects(), and log_object_manager.

void LogConfig::increment_space_used ( int  bytes  )  [inline]

Definition at line 132 of file LogConfig.h.

References m_partition_space_left, and m_space_used.

void LogConfig::init ( LogConfig previous_config = 0  ) 
void LogConfig::read_configuration_variables (  ) 
int LogConfig::reconfigure ( const char *  name,
RecDataT  data_type,
RecData  data,
void *  cookie 
) [static]

Definition at line 1100 of file LogConfig.cc.

References Log::config, Debug, and reconfiguration_needed.

Referenced by register_config_callbacks().

void * LogConfig::reconfigure_mgmt_variables ( void *  token,
char *  data_raw,
int  data_len 
) [static]

Definition at line 163 of file LogConfig.cc.

References Log::config, Note, and roll_log_files_now.

Referenced by register_mgmt_callbacks().

void LogConfig::register_config_callbacks (  )  [static]

Definition at line 1116 of file LogConfig.cc.

References countof, REC_RegisterConfigUpdateFunc, and reconfigure().

static void LogConfig::register_configs (  )  [static]
void LogConfig::register_mgmt_callbacks (  )  [static]
void LogConfig::register_stat_callbacks (  )  [static]
void LogConfig::setup_log_objects (  ) 
bool LogConfig::space_is_short (  )  [inline]

Definition at line 130 of file LogConfig.h.

References LOG_MEGABYTE, max_space_mb_headroom, and space_to_write().

bool LogConfig::space_to_write ( int64_t  bytes_to_write  ) 
void LogConfig::transfer_objects ( LogConfig old_config  )  [inline]

Definition at line 147 of file LogConfig.h.

References log_object_manager, and LogObjectManager::transfer_objects().

Referenced by init().

void LogConfig::update_space_used (  ) 

Field Documentation

Definition at line 208 of file LogConfig.h.

Referenced by read_configuration_variables().

Definition at line 191 of file LogConfig.h.

Referenced by display(), read_configuration_variables(), and update_space_used().

Definition at line 221 of file LogConfig.h.

Referenced by display(), read_configuration_variables(), and ~LogConfig().

Definition at line 183 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 186 of file LogConfig.h.

Referenced by read_configuration_variables(), and LogCollationClientSM::send().

Definition at line 181 of file LogConfig.h.

Referenced by am_collation_host(), display(), Log::init(), and read_configuration_variables().

Definition at line 184 of file LogConfig.h.

Referenced by display(), Log::init(), and read_configuration_variables().

Definition at line 185 of file LogConfig.h.

Referenced by read_configuration_variables().

Definition at line 173 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and read_configuration_variables().

Definition at line 174 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and read_configuration_variables().

Definition at line 192 of file LogConfig.h.

Referenced by read_configuration_variables(), and setup_log_objects().

Definition at line 177 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and read_configuration_variables().

Definition at line 178 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and read_configuration_variables().

Definition at line 175 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and read_configuration_variables().

Definition at line 176 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and read_configuration_variables().

Definition at line 205 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 162 of file LogConfig.h.

Referenced by display(), and setup_log_objects().

Definition at line 163 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and MakePredefinedErrorLog().

Definition at line 211 of file LogConfig.h.

Referenced by display(), read_configuration_variables(), and ~LogConfig().

Definition at line 224 of file LogConfig.h.

Referenced by display(), read_configuration_variables(), and ~LogConfig().

Definition at line 154 of file LogConfig.h.

Referenced by init().

Definition at line 165 of file LogConfig.h.

Referenced by display(), read_configuration_variables(), and update_space_used().

Definition at line 212 of file LogConfig.h.

Referenced by display(), read_configuration_variables(), update_space_used(), and ~LogConfig().

Definition at line 170 of file LogConfig.h.

Referenced by display(), LogFile::open_file(), and read_configuration_variables().

Definition at line 156 of file LogConfig.h.

Referenced by update_space_used().

Definition at line 158 of file LogConfig.h.

Referenced by increment_space_used(), space_to_write(), and update_space_used().

Definition at line 157 of file LogConfig.h.

Referenced by increment_space_used(), space_to_write(), and update_space_used().

Definition at line 209 of file LogConfig.h.

Referenced by read_configuration_variables().

Definition at line 166 of file LogConfig.h.

Referenced by display(), LogBuffer::LogBuffer(), and read_configuration_variables().

Definition at line 167 of file LogConfig.h.

Referenced by display(), get_max_space_mb(), init(), and read_configuration_variables().

Definition at line 168 of file LogConfig.h.

Referenced by display(), get_max_space_mb(), init(), and read_configuration_variables().

Definition at line 155 of file LogConfig.h.

Referenced by reconfigure().

Definition at line 159 of file LogConfig.h.

Referenced by reconfigure_mgmt_variables().

Definition at line 187 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 188 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 189 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 190 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 204 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 194 of file LogConfig.h.

Referenced by read_configuration_variables(), and setup_log_objects().

Definition at line 201 of file LogConfig.h.

Referenced by ~LogConfig().

Definition at line 202 of file LogConfig.h.

Referenced by ~LogConfig().

Definition at line 199 of file LogConfig.h.

Referenced by read_configuration_variables(), and setup_log_objects().

Definition at line 195 of file LogConfig.h.

Referenced by read_configuration_variables().

Definition at line 196 of file LogConfig.h.

Referenced by read_configuration_variables().

Definition at line 197 of file LogConfig.h.

Referenced by read_configuration_variables().

Definition at line 198 of file LogConfig.h.

Referenced by read_configuration_variables().

Definition at line 200 of file LogConfig.h.

Referenced by read_configuration_variables().

Definition at line 180 of file LogConfig.h.

Referenced by display(), read_configuration_variables(), and setup_log_objects().

Definition at line 179 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 206 of file LogConfig.h.

Referenced by display(), and read_configuration_variables().

Definition at line 171 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and read_configuration_variables().

Definition at line 172 of file LogConfig.h.

Referenced by display(), PreDefinedFormatList::init(), and read_configuration_variables().

Definition at line 223 of file LogConfig.h.

Referenced by display(), read_configuration_variables(), and ~LogConfig().


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