Logger class for sending logs to Google Firestore.
More...
#include <FirestoreLogger.h>
|
static void | Initialize (const std::string &apiKey) |
| Initializes the logger with an API key for Firestore.
|
|
static void | Log (const std::string &level, const std::string &message) |
| Logs a message with a specified level to Firestore.
|
|
Logger class for sending logs to Google Firestore.
FirestoreLogger uses the CPR library to send HTTP requests to Firestore. It requires an API key for authentication and sends log data to a specified Firestore database.
◆ Initialize()
void FirestoreLogger::Initialize |
( |
const std::string & | apiKey | ) |
|
|
static |
Initializes the logger with an API key for Firestore.
- Parameters
-
apiKey | The API key used for authenticating Firestore API requests. |
◆ Log()
void FirestoreLogger::Log |
( |
const std::string & | level, |
|
|
const std::string & | message ) |
|
static |
Logs a message with a specified level to Firestore.
- Parameters
-
level | The severity level of the log (e.g., "INFO", "WARNING", "ERROR"). |
message | The message to log. |
The documentation for this class was generated from the following files: