GNUnet 0.21.1
LogDef Struct Reference

Represents a single logging definition. More...

Data Fields

regex_t component_regex
 Component name regex. More...
 
regex_t file_regex
 File name regex. More...
 
regex_t function_regex
 Function name regex. More...
 
int from_line
 Lowest line at which this definition matches. More...
 
int to_line
 Highest line at which this definition matches. More...
 
int level
 Maximal log level allowed for calls that match this definition. More...
 
int force
 1 if this definition comes from GNUNET_FORCE_LOG, which means that it overrides any configuration options. More...
 

Detailed Description

Represents a single logging definition.

Definition at line 169 of file common_logging.c.

Field Documentation

◆ component_regex

regex_t LogDef::component_regex

Component name regex.

Definition at line 174 of file common_logging.c.

Referenced by add_definition(), and GNUNET_get_log_call_status().

◆ file_regex

regex_t LogDef::file_regex

File name regex.

Definition at line 179 of file common_logging.c.

Referenced by add_definition(), and GNUNET_get_log_call_status().

◆ function_regex

regex_t LogDef::function_regex

Function name regex.

Definition at line 184 of file common_logging.c.

Referenced by add_definition(), and GNUNET_get_log_call_status().

◆ from_line

int LogDef::from_line

Lowest line at which this definition matches.

Defaults to 0. Must be <= to_line.

Definition at line 190 of file common_logging.c.

Referenced by add_definition(), GNUNET_get_log_call_status(), and parse_definitions().

◆ to_line

int LogDef::to_line

Highest line at which this definition matches.

Defaults to INT_MAX. Must be >= from_line.

Definition at line 196 of file common_logging.c.

Referenced by add_definition(), GNUNET_get_log_call_status(), and parse_definitions().

◆ level

int LogDef::level

Maximal log level allowed for calls that match this definition.

Calls with higher log level will be disabled. Must be >= 0

Definition at line 203 of file common_logging.c.

Referenced by add_definition(), GNUNET_get_log_call_status(), and parse_definitions().

◆ force

int LogDef::force

1 if this definition comes from GNUNET_FORCE_LOG, which means that it overrides any configuration options.

0 otherwise.

Definition at line 209 of file common_logging.c.

Referenced by add_definition(), GNUNET_get_log_call_status(), and parse_definitions().


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