|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
Sends StripeKit's log entries through Drogon's logging. More...
#include <Drogon.h>
Public Member Functions | |
| LogBridge (LogLevel threshold=LogLevel::Info) | |
| Creates a bridge. | |
| 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 entry through Drogon's matching log level. | |
| Public Member Functions inherited from stripekit::Logger | |
| virtual | ~Logger ()=default |
| Destroys the logger instance. | |
Sends StripeKit's log entries through Drogon's logging.
Pass one to WebhookHandlerOptions::logger so StripeKit's diagnostics appear alongside the rest of the application's output.
|
explicit |
Creates a bridge.
| threshold | Lowest severity to pass on. Entries below it are dropped before reaching Drogon. |
|
overridevirtual |
Reports whether entries at this level are wanted.
| level | Severity being considered. |
Implements stripekit::Logger.
|
overridevirtual |
Writes one entry through Drogon's matching log level.
| level | Severity of the entry. |
| message | The text to record. |
| context | Identifiers to include in the entry. |
Implements stripekit::Logger.