Tor 0.4.9.1-alpha-dev
Functions | Variables
log_sys.c File Reference

Setup and tear down the logging module. More...

#include "orconfig.h"
#include "lib/subsys/subsys.h"
#include "lib/log/escape.h"
#include "lib/log/log.h"
#include "lib/log/log_sys.h"
#include "lib/log/util_bug.h"
#include "lib/metrics/metrics_store.h"

Go to the source code of this file.

Functions

static int subsys_logging_initialize (void)
 
static void subsys_logging_shutdown (void)
 
static const smartlist_tlogging_metrics_get_stores (void)
 

Variables

static metrics_store_tthe_store
 
const subsys_fns_t sys_logging
 

Detailed Description

Setup and tear down the logging module.

Setup and tear down the tracing module.

Definition in file log_sys.c.

Function Documentation

◆ logging_metrics_get_stores()

static const smartlist_t * logging_metrics_get_stores ( void  )
static

Definition at line 35 of file log_sys.c.

◆ subsys_logging_initialize()

static int subsys_logging_initialize ( void  )
static

Definition at line 20 of file log_sys.c.

◆ subsys_logging_shutdown()

static void subsys_logging_shutdown ( void  )
static

Definition at line 28 of file log_sys.c.

Variable Documentation

◆ sys_logging

const subsys_fns_t sys_logging
Initial value:
= {
.name = "log",
.supported = true,
.level = -90,
.initialize = subsys_logging_initialize,
.shutdown = subsys_logging_shutdown,
.get_metrics = logging_metrics_get_stores,
}
#define SUBSYS_DECLARE_LOCATION()
Definition: subsys.h:211

Definition at line 57 of file log_sys.c.

◆ the_store

metrics_store_t* the_store
static

Definition at line 17 of file log_sys.c.