12#ifndef RESPOND_LOGGING_HPP_
13#define RESPOND_LOGGING_HPP_
17#include <respond/logging_config.hpp>
22enum class LogType :
int {
31enum class CreationStatus :
int {
40enum class LogPattern :
int {
60CreationStatus CreateFileLogger(
const std::string &logger_name,
61 const std::string &filepath);
68CreationStatus ConfigureLogger(
const LoggingConfig &config);
81CreationStatus CreateSharedFileSink(
const std::string &filepath);
93CreationStatus CreateSharedLogger(
const std::string &logger_name);
100void SetLogPattern(LogPattern pattern);
104LogPattern GetLogPattern();
110void SetFlushInterval(
int seconds);
115void FlushAllLoggers();
128void LogInfo(
const std::string &logger_name,
const std::string &message);
136void LogWarning(
const std::string &logger_name,
const std::string &message);
144void LogError(
const std::string &logger_name,
const std::string &message);
152void LogDebug(
const std::string &logger_name,
const std::string &message);
162CreationStatus CheckLoggerExists(
const std::string &logger_name);
169std::string GetLoggerInfo(
const std::string &logger_name);
176void SetLoggerLevel(
const std::string &logger_name,
int level);