CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
Logger.h File Reference
#include <iostream>
#include <spdlog/common.h>
#include <spdlog/details/log_msg.h>
#include <spdlog/sinks/rotating_file_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
#include <carta-protobuf/enums.pb.h>
#include "Util/FileSystem.h"
Include dependency graph for Logger.h:
This graph shows which files directly or indirectly include this file:

Classes

class  spdlog::sinks::carta_sink
 

Namespaces

namespace  spdlog
 
namespace  spdlog::sinks
 
namespace  carta
 
namespace  carta::logger
 

Macros

#define LOG_FILE_SIZE   1024 * 1024 * 5
 
#define ROTATED_LOG_FILES   5
 
#define CARTA_LOGGER_TAG   "CARTA"
 
#define CARTA_LOGGER_PATTERN   "[%Y-%m-%d %H:%M:%S.%eZ] [%n] [%^%l%$] %v"
 
#define CARTA_FILE_LOGGER_PATTERN   "[%Y-%m-%d %H:%M:%S.%eZ] [%^%l%$] %v"
 
#define PERF_TAG   "performance"
 
#define PERF_PATTERN   "[%Y-%m-%d %H:%M:%S.%eZ] [%^%l%$] [%n] %v"
 

Functions

void carta::logger::InitLogger ()
 
void carta::logger::LogReceivedEventType (const CARTA::EventType &event_type)
 
void carta::logger::LogSentEventType (const CARTA::EventType &event_type)
 
void carta::logger::FlushLogFile ()
 

Variables

constexpr auto spdlog::performance
 

Macro Definition Documentation

◆ CARTA_FILE_LOGGER_PATTERN

#define CARTA_FILE_LOGGER_PATTERN   "[%Y-%m-%d %H:%M:%S.%eZ] [%^%l%$] %v"

◆ CARTA_LOGGER_PATTERN

#define CARTA_LOGGER_PATTERN   "[%Y-%m-%d %H:%M:%S.%eZ] [%n] [%^%l%$] %v"

◆ CARTA_LOGGER_TAG

#define CARTA_LOGGER_TAG   "CARTA"

◆ LOG_FILE_SIZE

#define LOG_FILE_SIZE   1024 * 1024 * 5

◆ PERF_PATTERN

#define PERF_PATTERN   "[%Y-%m-%d %H:%M:%S.%eZ] [%^%l%$] [%n] %v"

◆ PERF_TAG

#define PERF_TAG   "performance"

◆ ROTATED_LOG_FILES

#define ROTATED_LOG_FILES   5