Tor  0.4.7.0-alpha-dev
Enumerations | Functions | Variables
quiet_level.h File Reference

Declare the quiet_level enumeration and global. More...

Go to the source code of this file.

Enumerations

enum  quiet_level_t { QUIET_NONE = 0 , QUIET_HUSH = 1 , QUIET_SILENT = 2 }
 

Functions

void add_default_log_for_quiet_level (quiet_level_t quiet)
 

Variables

quiet_level_t quiet_level
 

Detailed Description

Declare the quiet_level enumeration and global.

Definition in file quiet_level.h.

Enumeration Type Documentation

◆ quiet_level_t

Enumeration to define how quietly Tor should log at startup.

Enumerator
QUIET_NONE 

Default quiet level: we log everything of level NOTICE or higher.

QUIET_HUSH 

"--hush" quiet level: we log everything of level WARNING or higher.

QUIET_SILENT 

"--quiet" quiet level: we log nothing at all.

Definition at line 16 of file quiet_level.h.

Function Documentation

◆ add_default_log_for_quiet_level()

void add_default_log_for_quiet_level ( quiet_level_t  quiet)

Add a default log (or not), depending on the value of quiet.

Definition at line 24 of file quiet_level.c.

Referenced by options_init_logs().

Variable Documentation

◆ quiet_level

quiet_level_t quiet_level
extern

How quietly should Tor log at startup?

Decides our behavior when no logs are configured/before any logs have been configured. For QUIET_NONE, we log notice to stdout as normal. For QUIET_HUSH, we log warnings only. For QUIET_SILENT, we log nothing.

Definition at line 20 of file quiet_level.c.

Referenced by options_init_logs().