hpx/logging/manipulator.hpp#

Defined in header hpx/logging/manipulator.hpp.

See Public API for a list of names and headers that are part of the public HPX API.

namespace hpx
namespace util
namespace logging#
namespace destination#

Destination is a manipulator. It contains a place where the message, after being formatted, is to be written to.

Some viable destinations are : the console, a file, a socket, etc.

struct manipulator#
#include <manipulator.hpp>

What to use as base class, for your destination classes.

Public Functions

virtual void operator()(message const&) = 0#
inline virtual void configure(std::string const&)#

Override this if you want to allow configuration through scripting.

That is, this allows configuration of your manipulator at run-time.

virtual ~manipulator()#

Protected Functions

manipulator() = default#
namespace formatter#

Formatter is a manipulator. It allows you to format the message before writing it to the destination(s)

Examples of formatters are: formatter::time_t (prepend the time), formatter::high_precision_time_t (prepend high-precision time), and formatter::idx_t (prepend the index of the message).

struct manipulator#
#include <manipulator.hpp>

What to use as base class, for your formatter classes.

Public Functions

virtual void operator()(std::ostream&) const = 0#
inline virtual void configure(std::string const&)#

Override this if you want to allow configuration through scripting.

That is, this allows configuration of your manipulator at run-time.

virtual ~manipulator()#

Protected Functions

manipulator() = default#

Friends

inline friend void format_value(std::ostream &os, std::string_view, manipulator const &value)#