CrossGuard
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
FirestoreLogger Class Reference

Logger class for sending logs to Google Firestore. More...

#include <FirestoreLogger.h>

Static Public Member Functions

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.
 

Detailed Description

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.

Member Function Documentation

◆ Initialize()

void FirestoreLogger::Initialize ( const std::string & apiKey)
static

Initializes the logger with an API key for Firestore.

Parameters
apiKeyThe 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
levelThe severity level of the log (e.g., "INFO", "WARNING", "ERROR").
messageThe message to log.

The documentation for this class was generated from the following files: