Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx_log_t_logger.h
Go to the documentation of this file.
1#ifndef SAFEHERON_SGX_LIBRARY_LOG_T_H
2#define SAFEHERON_SGX_LIBRARY_LOG_T_H
3
4#include <string>
5
7
8namespace ssgx {
9namespace log_t {
10
26 public:
35
51 void SetTraceId(const std::string& trace_id);
52
53 // Delete copy constructor and assignment operator
54 SSGXLogger(const SSGXLogger&) = delete;
55 SSGXLogger& operator=(const SSGXLogger&) = delete;
56
57 private:
61 SSGXLogger();
62
67};
68
69} // namespace log_t
70} // namespace ssgx
71
72#endif // SAFEHERON_SGX_LIBRARY_LOG_T_H
Singleton class for managing logging within the SGX library.
Definition ssgx_log_t_logger.h:25
SSGXLogger & operator=(const SSGXLogger &)=delete
SSGXLogger(const SSGXLogger &)=delete
void SetTraceId(const std::string &trace_id)
Sets a trace ID for log messages.
static SSGXLogger & GetInstance()
Retrieves the singleton instance of SSGXLogger.
Definition ssgx_attestation_t.h:6