Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
logchannel Struct Reference

Data Fields

char components [0]
 
int disabled
 
int dynamic
 
int facility
 
char filename [PATH_MAX]
 
FILE * fileptr
 
struct logformatter formatter
 
int lineno
 
struct {
   struct logchannel *   next
 
list
 
unsigned int logmask
 
enum logtypes type
 
int verbosity
 

Detailed Description

Definition at line 138 of file logger.c.

Field Documentation

char components[0]

Components (levels) from last config load

Definition at line 162 of file logger.c.

int disabled

If this channel is disabled or not

Definition at line 144 of file logger.c.

Referenced by ast_logger_get_channels(), ast_logger_rotate_channel(), handle_logger_show_channels(), and logger_print_normal().

int dynamic

Whether this log channel was created dynamically

Definition at line 160 of file logger.c.

Referenced by ast_logger_remove_channel().

int facility

syslog facility

Definition at line 146 of file logger.c.

Referenced by logger_print_normal().

char filename[PATH_MAX]
FILE* fileptr

logfile logging file pointer

Definition at line 152 of file logger.c.

Referenced by ast_logger_remove_channel(), ast_logger_rotate_channel(), close_logger(), and logger_print_normal().

struct logformatter formatter

How the logs sent to this channel will be formatted

Definition at line 140 of file logger.c.

Referenced by handle_logger_show_channels(), and logger_print_normal().

int lineno

Line number from configuration file

Definition at line 158 of file logger.c.

struct { ... } list
unsigned int logmask
enum logtypes type

Type of log channel

Definition at line 150 of file logger.c.

Referenced by ast_logger_get_channels(), handle_logger_show_channels(), and logger_print_normal().

int verbosity

Verbosity level. (-1 if use option_verbose for the level.)

Definition at line 148 of file logger.c.

Referenced by ast_verb_update(), and logger_print_normal().


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