|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
A logger that writes to the process's standard error stream. More...
#include <Logging.h>
Public Member Functions | |
| ConsoleLogger (LogLevel threshold=LogLevel::Info) | |
| Creates a console logger. | |
| bool | should_log (LogLevel level) const override |
| Reports whether entries at this level are wanted. | |
| void | log (LogLevel level, std::string_view message, const LogContext &context) override |
| Writes one formatted line. | |
| Public Member Functions inherited from stripekit::Logger | |
| virtual | ~Logger ()=default |
| Destroys the logger instance. | |
A logger that writes to the process's standard error stream.
Convenient for command-line tools and getting started. Applications with their own logging should implement Logger, or use their adapter's bridge.
|
explicit |
Creates a console logger.
| threshold | Lowest severity to write. Entries below it are dropped. |
|
overridevirtual |
Reports whether entries at this level are wanted.
| level | Severity being considered. |
Implements stripekit::Logger.
|
overridevirtual |
Writes one formatted line.
| level | Severity of the entry. |
| message | The text to record. |
| context | Identifiers to include in the line. |
Implements stripekit::Logger.