Tor  0.4.7.0-alpha-dev
Data Fields
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

Definition at line 69 of file log.c.

Field Documentation

◆ callback

log_callback callback

If not NULL, send messages to this function.

Definition at line 77 of file log.c.

Referenced by change_callback_log_severity().

◆ fd

int fd

◆ filename

char* filename

Filename to open.

Definition at line 71 of file log.c.

Referenced by log_free_().

◆ is_syslog

int is_syslog

Boolean: send messages to syslog.

Definition at line 76 of file log.c.

Referenced by close_log(), and logfile_deliver().

◆ is_temporary

int is_temporary

Boolean: close after initializing logging subsystem.

Definition at line 75 of file log.c.

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

◆ needs_close

int needs_close

Boolean: true if the stream gets closed on shutdown.

Definition at line 74 of file log.c.

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

◆ next

struct logfile_t* next

◆ seems_dead

int seems_dead

Boolean: true if the stream seems to be kaput.

Definition at line 73 of file log.c.

Referenced by logfile_wants_message(), and tor_log_update_sigsafe_err_fds().

◆ severities

log_severity_list_t* severities

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

Definition at line 78 of file log.c.

Referenced by change_callback_log_severity(), get_min_log_level(), log_free_(), logfile_wants_message(), switch_logs_debug(), and tor_log_update_sigsafe_err_fds().


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