|
Binance C++ Connector 2.0.0
Official C++ connectors for the Binance APIs
|
Process-wide logger. More...
#include <logger.hpp>
Public Types | |
| using | Sink = std::function<void(LogLevel, std::string_view)> |
Static Public Member Functions | |
| static void | set_level (LogLevel level) noexcept |
| static LogLevel | level () noexcept |
| static void | set_sink (Sink sink) |
| Replaces the output. | |
| static bool | enabled (LogLevel level) noexcept |
| static void | log (LogLevel level, std::string_view message) noexcept |
| static void | debug (std::string_view message) noexcept |
| static void | info (std::string_view message) noexcept |
| static void | warn (std::string_view message) noexcept |
| static void | error (std::string_view message) noexcept |
Process-wide logger.
Defaults to Info on stderr, or to the level named by the LOG_LEVEL environment variable (debug, info, warn, error, none).
| using binance::common::Logger::Sink = std::function<void(LogLevel, std::string_view)> |
|
staticnoexcept |
|
staticnodiscardnoexcept |
|
static |
Replaces the output.
An empty sink restores stderr. The sink may be called from any thread; exceptions it throws are discarded.
|
inlinestaticnodiscardnoexcept |
|
staticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |