LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
Logger.hpp File Reference

Defines the Logger class for managing multiple loggers and formatters. More...

#include "config.hpp"
#include "loggers/ILogger.hpp"
#include "formatter.hpp"
#include "detail/TaskExecutor.hpp"
#include <memory>
#include <mutex>
#include <sstream>
#include <atomic>
#include <cstddef>
#include <vector>

Go to the source code of this file.

Classes

class  logit::Logger
 Singleton class managing multiple loggers and formatters. More...
 
struct  logit::Logger::LoggerStrategy
 Structure to hold a logger-formatter pair. More...
 

Namespaces

namespace  logit
 The primary namespace for the LogIt++ library.
 

Macros

#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGER_HPP_INCLUDED
 
#define LOGIT_HAS_SHARED_MUTEX   0
 

Typedefs

using logit::LoggerMutex = std::mutex
 
using logit::LoggerReadLock = std::unique_lock<LoggerMutex>
 
using logit::LoggerWriteLock = std::unique_lock<LoggerMutex>
 

Detailed Description

Defines the Logger class for managing multiple loggers and formatters.

Definition in file Logger.hpp.

Macro Definition Documentation

◆ LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGER_HPP_INCLUDED

#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGER_HPP_INCLUDED

Definition at line 3 of file Logger.hpp.

◆ LOGIT_HAS_SHARED_MUTEX

#define LOGIT_HAS_SHARED_MUTEX   0

Definition at line 23 of file Logger.hpp.