Pol  Revision:3cfda13
logfacility.cpp File Reference
#include "logfacility.h"
#include <chrono>
#include <fstream>
#include <functional>
#include <iostream>
#include <mutex>
#include <string.h>
#include <thread>
#include "clib.h"
#include "message_queue.h"
#include "Header_Windows.h"

Go to the source code of this file.

Classes

struct  Pol::Clib::Logging::LogFileBehaviour
 
class  Pol::Clib::Logging::LogFacility::LogWorker
 

Namespaces

 Pol
 
 Pol::Clib
 
 Pol::Clib::Logging
 

Macros

#define SINK_TEMPLATE_DEFINES(sink)
 
#define SINK_TEMPLATE_DEFINES_DUAL(sink1, sink2)
 

Functions

template<typename Sink >
Sink * Pol::Clib::Logging::getSink ()
 
void Pol::Clib::Logging::initLogging (LogFacility *logger)
 

Variables

static LogFileBehaviour Pol::Clib::Logging::debuglogBehaviour
 
static LogFileBehaviour Pol::Clib::Logging::flexlogBehaviour
 
LogFacility * Pol::Clib::Logging::global_logger = nullptr
 
static LogFileBehaviour Pol::Clib::Logging::leaklogBehaviour
 
bool Pol::Clib::LogfileTimestampEveryLine = false
 
static LogFileBehaviour Pol::Clib::Logging::pollogBehaviour
 
static LogFileBehaviour Pol::Clib::Logging::scriptlogBehaviour
 
static LogFileBehaviour Pol::Clib::Logging::startlogBehaviour
 

Macro Definition Documentation

#define SINK_TEMPLATE_DEFINES (   sink)
Value:
template Pol::Clib::Logging::sink* Pol::Clib::Logging::getSink<Pol::Clib::Logging::sink>(); \
template void Pol::Clib::Logging::LogFacility::save<Pol::Clib::Logging::sink>( \
fmt::Writer * message, const std::string& id );

Definition at line 504 of file logfacility.cpp.

#define SINK_TEMPLATE_DEFINES_DUAL (   sink1,
  sink2 
)
Value:
template class Pol::Clib::Logging::Message< \
Pol::Clib::Logging::LogSink_dual<Pol::Clib::Logging::sink1, Pol::Clib::Logging::sink2>>; \
Pol::Clib::Logging::LogSink_dual<Pol::Clib::Logging::sink1, Pol::Clib::Logging::sink2>>(); \
Pol::Clib::Logging::LogSink_dual<Pol::Clib::Logging::sink1, Pol::Clib::Logging::sink2>>( \
fmt::Writer * message, const std::string& id );
void save(fmt::Writer *message, const std::string &id)

Definition at line 510 of file logfacility.cpp.