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

LogLevel bb_log_level
 
LogFunction log_function = [](LogLevel , const std::string& msg) { logstr(msg.c_str()); }
 

Function Documentation

◆ set_log_function()

void set_log_function ( LogFunction  new_log_function)

Definition at line 21 of file log.cpp.

Variable Documentation

◆ bb_log_level

LogLevel bb_log_level
Initial value:
= []() {
const char* verbose_ptr = std::getenv("BB_VERBOSE");
std::string verbose_str = verbose_ptr == nullptr ? "0" : std::string(verbose_ptr);
return verbose_str == "1" ? LogLevel::VERBOSE : LogLevel::INFO;
}()
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept
Definition tuple.hpp:13

Definition at line 9 of file log.cpp.

◆ log_function

LogFunction log_function = [](LogLevel , const std::string& msg) { logstr(msg.c_str()); }

Definition at line 19 of file log.cpp.