class mola::LogHub::Sink

Overview

Handle to a registered sink: the sink is removed when it is destroyed.

See also:

add_sink()

#include <LogHub.h>

class Sink
{
public:
    // structs

    struct Entry;

    // construction

    Sink(const Sink&);
    Sink(Sink&&);

    // methods

    Sink& operator = (const Sink&);
    Sink& operator = (Sink&&);
    void set_min_level(mrpt::system::VerbosityLevel level);
    mrpt::system::VerbosityLevel min_level() const;
};

Methods

void set_min_level(mrpt::system::VerbosityLevel level)

Changes the minimum level of messages sent to this sink. It reaches the module loggers on the next attach_modules() call.