logfile_t Struct Reference


Data Fields

struct logfile_tnext
char * filename
int fd
int seems_dead
int needs_close
int is_temporary
int is_syslog
log_callback callback
log_severity_list_tseverities

Detailed Description

Information for a single logfile; only used in log.c

Field Documentation

struct logfile_t* logfile_t::next [read]

Filename to open.

Referenced by add_callback_log(), add_stream_log_impl(), add_syslog_log(), and log_free().

fd to receive log messages, or -1 for none.

Referenced by add_callback_log(), add_stream_log_impl(), add_syslog_log(), close_log(), log_tor_version(), and logv().

Boolean: true if the stream seems to be kaput.

Referenced by logv().

Boolean: true if the stream gets closed on shutdown.

Referenced by add_file_log(), close_log(), and log_tor_version().

Boolean: close after initializing logging subsystem.

Referenced by add_temp_log(), log_tor_version(), mark_logs_temp(), and rollback_log_changes().

Boolean: send messages to syslog.

Referenced by add_syslog_log(), close_log(), and logv().

If not NULL, send messages to this function.

Referenced by add_callback_log(), change_callback_log_severity(), and logv().

Which severity of messages should we log for each log domain?

Referenced by add_callback_log(), add_stream_log_impl(), add_syslog_log(), change_callback_log_severity(), get_min_log_level(), log_free(), logv(), and switch_logs_debug().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:13 2010 for tor by  doxygen 1.5.6