namespace Gambit::Logging

Forward declare minimial logging components needed to use logger.

Classes

Name
classGambit::Logging::BaseLogger
Logger virtual base class.
structGambit::Logging::endofmessage
Special (empty) struct for signalling end of message to LogMaster stream.
structGambit::Logging::ensure_construction_order
classGambit::Logging::LogMaster
structGambit::Logging::Message
structure for storing log messages and metadata
structGambit::Logging::SortedMessage
structure for storing log messages and metadata after tags are sorted
classGambit::Logging::StdLogger
Logger for ‘standard’ messages.

Types

Name
typedef std::ostream &(*)(std::ostream &)manip1
typedef std::basic_ios< std::ostream::char_type, std::ostream::traits_type >ios_type
typedef ios_type &(*)(ios_type &)manip2
typedef std::ios_base &(*)(std::ios_base &)manip3

Functions

Name
EXPORT_SYMBOLS LogMaster &operator«(LogMaster & logobj, const std::string & in)
Stream functions for use with LogMaster.
EXPORT_SYMBOLS LogMaster &operator«(LogMaster & logobj, const LogTag & tag)
Handle LogTag input.
EXPORT_SYMBOLS LogMaster &operator«(LogMaster & logobj, const endofmessage & eom)
Handle end of message character.
EXPORT_SYMBOLS LogMaster &operator«(LogMaster & logobj, const manip1)
Handle various stream manipulators.
EXPORT_SYMBOLS LogMaster &operator«(LogMaster & logobj, const manip2)
EXPORT_SYMBOLS LogMaster &operator«(LogMaster & logobj, const manip3)
template <typename TYPE >
LogMaster &
operator«(LogMaster & logobj, const TYPE & input)
template <typename TYPE >
LogMaster &
operator«(LogMaster & logobj, TYPE & input)
intstr2tag(const std::string & tagname)
std::map< int, std::string > &tag2str()
std::set< int > &components()
const Utils::time_pointstart_time(Utils::get_clock_now() )
const std::set< LogTag > &msgtypes()
const std::set< LogTag > &flags()
const std::set< LogTag > &echoes()
intgetfreetag()
voidchecktags()
Function to inspect tags and their associated strings. For testing purposes only.
std::map< int, std::string >create_tag_names()

Attributes

Name
const boolverbose

Types Documentation

typedef manip1

typedef std::ostream &(* Gambit::Logging::manip1) (std::ostream &);

typedef ios_type

typedef std::basic_ios< std::ostream::char_type, std::ostream::traits_type > Gambit::Logging::ios_type;

typedef manip2

typedef ios_type &(* Gambit::Logging::manip2) (ios_type &);

typedef manip3

typedef std::ios_base &(* Gambit::Logging::manip3) (std::ios_base &);

Functions Documentation

function operator«

EXPORT_SYMBOLS LogMaster & operator<<(
    LogMaster & logobj,
    const std::string & in
)

Stream functions for use with LogMaster.

{@ Stream functions overloads for working with the logger

Stream functions for use with LogMaster

function operator«

EXPORT_SYMBOLS LogMaster & operator<<(
    LogMaster & logobj,
    const LogTag & tag
)

Handle LogTag input.

function operator«

EXPORT_SYMBOLS LogMaster & operator<<(
    LogMaster & logobj,
    const endofmessage & eom
)

Handle end of message character.

function operator«

EXPORT_SYMBOLS LogMaster & operator<<(
    LogMaster & logobj,
    const manip1
)

Handle various stream manipulators.

function operator«

EXPORT_SYMBOLS LogMaster & operator<<(
    LogMaster & logobj,
    const manip2
)

function operator«

EXPORT_SYMBOLS LogMaster & operator<<(
    LogMaster & logobj,
    const manip3
)

function operator«

template <typename TYPE >
LogMaster & operator<<(
    LogMaster & logobj,
    const TYPE & input
)

function operator«

template <typename TYPE >
LogMaster & operator<<(
    LogMaster & logobj,
    TYPE & input
)

function str2tag

int str2tag(
    const std::string & tagname
)

function tag2str

std::map< int, std::string > & tag2str()

function components

std::set< int > & components()

function start_time

static const Utils::time_point start_time(
    Utils::get_clock_now() 
)

function msgtypes

const std::set< LogTag > & msgtypes()

function flags

const std::set< LogTag > & flags()

function echoes

const std::set< LogTag > & echoes()

function getfreetag

int getfreetag()

function checktags

void checktags()

Function to inspect tags and their associated strings. For testing purposes only.

function create_tag_names

static std::map< int, std::string > create_tag_names()

Attributes Documentation

variable verbose

const bool verbose = false;

Updated on 2024-07-18 at 13:53:31 +0000