Tor
0.4.7.0-alpha-dev
app
config
quiet_level.h
Go to the documentation of this file.
1
/* Copyright (c) 2001 Matej Pfajfar.
2
* Copyright (c) 2001-2004, Roger Dingledine.
3
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4
* Copyright (c) 2007-2021, The Tor Project, Inc. */
5
/* See LICENSE for licensing information */
6
7
/**
8
* \file quiet_level.h
9
* \brief Declare the quiet_level enumeration and global.
10
**/
11
12
#ifndef QUIET_LEVEL_H
13
#define QUIET_LEVEL_H
14
15
/** Enumeration to define how quietly Tor should log at startup. */
16
typedef
enum
{
17
/** Default quiet level: we log everything of level NOTICE or higher. */
18
QUIET_NONE
= 0,
19
/** "--hush" quiet level: we log everything of level WARNING or higher. */
20
QUIET_HUSH
= 1 ,
21
/** "--quiet" quiet level: we log nothing at all. */
22
QUIET_SILENT
= 2
23
}
quiet_level_t
;
24
25
/** How quietly should Tor log at startup? */
26
extern
quiet_level_t
quiet_level
;
27
28
void
add_default_log_for_quiet_level
(
quiet_level_t
quiet
);
29
30
#endif
/* !defined(QUIET_LEVEL_H) */
quiet
int quiet
Definition:
config.c:2442
quiet_level
quiet_level_t quiet_level
Definition:
quiet_level.c:20
quiet_level_t
quiet_level_t
Definition:
quiet_level.h:16
QUIET_SILENT
@ QUIET_SILENT
Definition:
quiet_level.h:22
QUIET_NONE
@ QUIET_NONE
Definition:
quiet_level.h:18
QUIET_HUSH
@ QUIET_HUSH
Definition:
quiet_level.h:20
add_default_log_for_quiet_level
void add_default_log_for_quiet_level(quiet_level_t quiet)
Definition:
quiet_level.c:24
Generated by
1.9.1