1#ifndef SAFEHERON_SGX_LIBRARY_LOG_U_H
2#define SAFEHERON_SGX_LIBRARY_LOG_U_H
48 void Init(
const std::string& logger_name,
const std::string& log_file,
117 int MapLogLevel(
LogLevel log_level)
const;
119 std::string logger_name_;
Singleton class for managing logging within the SGX library.
Definition ssgx_log_u_logger.h:26
int WriteLog(ssgx::log_u::LogLevel log_level, const char *msg)
Logs a message with the specified log level.
std::string GetLoggerName()
Retrieves the singleton instance of SSGXLogger.
Definition ssgx_log_u_logger.h:57
void Init(const std::string &logger_name, const std::string &log_file, LogLevel log_level=ssgx::log_u::LogLevel::INFO, bool append_console=false)
Initializes the logger with specified settings.
static SSGXLogger & GetInstance()
Retrieves the singleton instance of SSGXLogger.
SSGXLogger(const SSGXLogger &)=delete
void SetTraceId(const std::string &trace_id)
Sets a trace ID for log messages.
SSGXLogger & operator=(const SSGXLogger &)=delete
LogLevel
Definition ssgx_log_u_log_message.h:8
Definition ssgx_attestation_t.h:6