WireCellToolkit
Wire Cell Simulation, Signal Process and Reconstruction Toolki for Liquid Argon Detectors
WireCell::Log Namespace Reference

Typedefs

typedef std::shared_ptr< spdlog::loggerlogptr_t
 
typedef std::shared_ptr< spdlog::sinks::sinksinkptr_t
 

Functions

void add_sink (sinkptr_t sink, std::string level="")
 
void add_file (std::string filename, std::string level="")
 
void add_stdout (bool color=true, std::string level="")
 
void add_stderr (bool color=true, std::string level="")
 
logptr_t logger (std::string name)
 
void set_level (std::string level, std::string which="")
 
void set_pattern (std::string pattern, std::string which="")
 

Typedef Documentation

◆ logptr_t

typedef std::shared_ptr<spdlog::logger> WireCell::Log::logptr_t

Definition at line 24 of file Logging.h.

◆ sinkptr_t

Definition at line 25 of file Logging.h.

Function Documentation

◆ add_file()

void WireCell::Log::add_file ( std::string  filename,
std::string  level = "" 
)

Definition at line 42 of file Logging.cxx.

Here is the caller graph for this function:

◆ add_sink()

void WireCell::Log::add_sink ( Log::sinkptr_t  sink,
std::string  level = "" 
)

Definition at line 35 of file Logging.cxx.

Here is the call graph for this function:

◆ add_stderr()

void WireCell::Log::add_stderr ( bool  color = true,
std::string  level = "" 
)

Definition at line 59 of file Logging.cxx.

Here is the caller graph for this function:

◆ add_stdout()

void WireCell::Log::add_stdout ( bool  color = true,
std::string  level = "" 
)

Definition at line 48 of file Logging.cxx.

Here is the caller graph for this function:

◆ logger()

Log::logptr_t WireCell::Log::logger ( std::string  name)

Definition at line 71 of file Logging.cxx.

Here is the caller graph for this function:

◆ set_level()

void WireCell::Log::set_level ( std::string  level,
std::string  which = "" 
)

Definition at line 90 of file Logging.cxx.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_pattern()

void WireCell::Log::set_pattern ( std::string  pattern,
std::string  which = "" 
)

Definition at line 100 of file Logging.cxx.

Here is the call graph for this function:
Here is the caller graph for this function: