Tor 0.4.9.8
Loading...
Searching...
No Matches
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 70 of file log.c.

Field Documentation

◆ callback

log_callback callback

If not NULL, send messages to this function.

Definition at line 78 of file log.c.

Referenced by add_callback_log(), change_callback_log_severity(), flush_pending_log_callbacks(), logfile_deliver(), and logfile_is_external().

◆ fd

◆ filename

char* filename

Filename to open.

Definition at line 72 of file log.c.

Referenced by add_callback_log(), add_stream_log_impl(), log_free_(), and tor_log_get_logfile_names().

◆ is_syslog

int is_syslog

Boolean: send messages to syslog.

Definition at line 77 of file log.c.

Referenced by close_log(), logfile_deliver(), and logfile_is_external().

◆ is_temporary

int is_temporary

Boolean: close after initializing logging subsystem.

Definition at line 76 of file log.c.

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

◆ needs_close

int needs_close

Boolean: true if the stream gets closed on shutdown.

Definition at line 75 of file log.c.

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

◆ next

◆ seems_dead

int seems_dead

Boolean: true if the stream seems to be kaput.

Definition at line 74 of file log.c.

Referenced by flush_pending_log_callbacks(), logfile_deliver(), logfile_wants_message(), and tor_log_update_sigsafe_err_fds().

◆ severities


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