fix8  version 1.4.0
Open Source C++ FIX Framework
logger.hpp File Reference
#include <list>
#include <Poco/Net/IPAddress.h>
#include <Poco/Net/DatagramSocket.h>

Go to the source code of this file.

Classes

class  FIX8::fdoutbuf
 File descriptor output streambuf, inspiration from Josuttis N.M. More...
 
class  FIX8::fptrostream
 File pointer stream. More...
 
class  FIX8::bcoutbuf
 Socket output streambuf, inspiration from Josuttis N.M. More...
 
class  FIX8::bcostream
 udp stream More...
 
class  FIX8::Logger
 f8_thread delegated async logging class More...
 
struct  FIX8::Logger::LogElement
 
class  FIX8::FileLogger
 A file logger. More...
 
class  FIX8::XmlFileLogger
 A file logger. More...
 
class  FIX8::PipeLogger
 A pipe logger. More...
 
class  FIX8::BCLogger
 A broadcast logger. More...
 
class  FIX8::SingleLogger< fn >
 A global singleton logger. More...
 
class  FIX8::buffered_ostream
 
class  FIX8::buffered_ostream::tsbuf
 
class  FIX8::log_stream
 

Namespaces

 FIX8
 

Macros

#define glout_info
 
#define glout   glout_info
 
#define glout_warn
 
#define glout_error
 
#define glout_fatal
 
#define glout_debug   true ? FIX8::null_insert() : FIX8::null_insert()
 

Typedefs

using FIX8::logger_function = std::function< bool(const std::string &, Logger::Level, const char *, const unsigned)>
 
using FIX8::GlobalLogger = SingleLogger< glob_log0 >
 

Functions

const size_t FIX8::max_global_filename_length (1024)
 

Variables

F8API char FIX8::glob_log0 [max_global_filename_length] { "global_filename_not_set.log" }
 

Macro Definition Documentation

#define glout   glout_info

Definition at line 603 of file logger.hpp.

#define glout_debug   true ? FIX8::null_insert() : FIX8::null_insert()
#define glout_error
Value:
static bool enqueue(const std::string &what, Logger::Level lev=Logger::Info, const char *fl=nullptr, unsigned int val=0)
Definition: logger.hpp:510
std::function< bool(const std::string &, Logger::Level, const char *, const unsigned)> logger_function
Definition: logger.hpp:576
#define FILE_LINE
Definition: f8utils.hpp:68
static bool is_loggable(Logger::Level lev)
Definition: logger.hpp:538

Definition at line 606 of file logger.hpp.

Referenced by FIX8::MemoryPersister::get(), FIX8::FilePersister::get(), FIX8::Session::handle_logon(), FIX8::FilePersister::initialise(), main(), and FIX8::FilePersister::put().

#define glout_fatal
Value:
static bool enqueue(const std::string &what, Logger::Level lev=Logger::Info, const char *fl=nullptr, unsigned int val=0)
Definition: logger.hpp:510
std::function< bool(const std::string &, Logger::Level, const char *, const unsigned)> logger_function
Definition: logger.hpp:576
#define FILE_LINE
Definition: f8utils.hpp:68
static bool is_loggable(Logger::Level lev)
Definition: logger.hpp:538

Definition at line 608 of file logger.hpp.

Referenced by FIX8::Session::process().

#define glout_info
Value:
static bool enqueue(const std::string &what, Logger::Level lev=Logger::Info, const char *fl=nullptr, unsigned int val=0)
Definition: logger.hpp:510
std::function< bool(const std::string &, Logger::Level, const char *, const unsigned)> logger_function
Definition: logger.hpp:576
#define FILE_LINE
Definition: f8utils.hpp:68
static bool is_loggable(Logger::Level lev)
Definition: logger.hpp:538

Definition at line 601 of file logger.hpp.

Referenced by FIX8::FilePersister::get(), FIX8::Session::handle_logon(), FIX8::FilePersister::initialise(), main(), FIX8::Timer< T >::operator()(), FIX8::PipeLogger::PipeLogger(), server_process(), FIX8::Connection::set_recv_buf_sz(), FIX8::Connection::set_send_buf_sz(), and FIX8::Session::start().

#define glout_warn
Value:
static bool enqueue(const std::string &what, Logger::Level lev=Logger::Info, const char *fl=nullptr, unsigned int val=0)
Definition: logger.hpp:510
std::function< bool(const std::string &, Logger::Level, const char *, const unsigned)> logger_function
Definition: logger.hpp:576
#define FILE_LINE
Definition: f8utils.hpp:68
static bool is_loggable(Logger::Level lev)
Definition: logger.hpp:538

Definition at line 604 of file logger.hpp.

Referenced by FIX8::MemoryPersister::get(), FIX8::FilePersister::get(), FIX8::Session::handle_logon(), FIX8::FilePersister::initialise(), FIX8::Session::Session(), FIX8::AsyncSocket< f8String >::start(), FIX8::FIXReader::stop(), and FIX8::FIXWriter::stop().