Tor  0.4.6.0-alpha-dev
Functions | Variables
quiet_level.c File Reference

Code to handle default logging level (quiet/hush/normal). More...

#include "orconfig.h"
#include "lib/log/log.h"
#include "app/config/quiet_level.h"

Go to the source code of this file.

Functions

void add_default_log_for_quiet_level (quiet_level_t quiet)
 

Variables

quiet_level_t quiet_level = 0
 

Detailed Description

Code to handle default logging level (quiet/hush/normal).

Definition in file quiet_level.c.

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 = 0

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().