class ulog::FileLogHandler

Overview

Writes log messages to text file. More…

#include <Ulog.h>

class FileLogHandler: public ulog::LogHandler {
public:
    // construction

    FileLogHandler(const std::string& filename, ulog::Entry::Type log_level);

    // methods

    void AddMessage(ulog::Entry::Type type, ulog::Category categ, const std::string& msg, const std::string& caller);
};

Inherited Members

public:
    // methods

    virtual void AddMessage(ulog::Entry::Type type, ulog::Category categ, const std::string& msg, const std::string& caller) = 0;

Detailed Documentation

Writes log messages to text file.

Construction

FileLogHandler(const std::string& filename, ulog::Entry::Type log_level)

Logger that writes log messages to text file. Messages bellow log_level are discarded.

Methods

void AddMessage(ulog::Entry::Type type, ulog::Category categ, const std::string& msg, const std::string& caller)

Add message to the handler.