Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
log.cpp File Reference
#include <cstdlib>
#include <string>
#include "barretenberg/common/log.hpp"

Go to the source code of this file.

Functions

void set_log_function (LogFunction new_log_function)
 

Variables

bool verbose_logging = std::getenv("BB_VERBOSE") == nullptr ? false : std::string(std::getenv("BB_VERBOSE")) == "1"
 
bool debug_logging = false
 
LogFunction log_function = [](LogLevel , const char* msg) { logstr(msg); }
 

Function Documentation

◆ set_log_function()

void set_log_function ( LogFunction  new_log_function)

Definition at line 19 of file log.cpp.

Variable Documentation

◆ debug_logging

bool debug_logging = false

Definition at line 14 of file log.cpp.

◆ log_function

LogFunction log_function = [](LogLevel , const char* msg) { logstr(msg); }

Definition at line 17 of file log.cpp.

◆ verbose_logging

bool verbose_logging = std::getenv("BB_VERBOSE") == nullptr ? false : std::string(std::getenv("BB_VERBOSE")) == "1"

Definition at line 8 of file log.cpp.