Yarilo v0.9.9
WPA2 Decrypter & Packet Analyzer
Loading...
Searching...
No Matches
yarilo::log Namespace Reference

Classes

class  ProtoSink
 A sink for logging messages in a protobuf format. More...
 

Typedefs

using ProtoSinkMt = ProtoSink<std::mutex>
 Mutex-based ProtoSink for multi-threaded environments.
 
using ProtoSinkSt = ProtoSink<spdlog::details::null_mutex>
 Null mutex-based ProtoSink for single-threaded environments.
 

Functions

std::shared_ptr< spdlog::logger > get_logger (const std::string &name)
 

Variables

std::shared_ptr< ProtoSinkMtglobal_proto_sink
 Sink storing messages in a proto format.
 
spdlog::level::level_enum global_log_level = spdlog::level::info
 Yarilo log level.
 

Typedef Documentation

◆ ProtoSinkMt

using yarilo::log::ProtoSinkMt = ProtoSink<std::mutex>

Mutex-based ProtoSink for multi-threaded environments.

◆ ProtoSinkSt

using yarilo::log::ProtoSinkSt = ProtoSink<spdlog::details::null_mutex>

Null mutex-based ProtoSink for single-threaded environments.

Function Documentation

◆ get_logger()

std::shared_ptr< spdlog::logger > yarilo::log::get_logger ( const std::string & name)

Get a named logger with a colored sink and a proto one

Parameters
[in]nameThe name that the logger should use, multiple places can use the same logger name

Variable Documentation

◆ global_log_level

spdlog::level::level_enum yarilo::log::global_log_level = spdlog::level::info

Yarilo log level.

◆ global_proto_sink

std::shared_ptr< ProtoSinkMt > yarilo::log::global_proto_sink
Initial value:
=
std::make_shared<ProtoSinkMt>(50)

Sink storing messages in a proto format.