Appender class final
#include <logging.hpp>
A named logging output channel.
An Appender can be constructed for either a std::string representing a filename or a FILE* along with a name.
An Appender always has a name. If the Appender is constructed with just a filename, this filename becomes its name. If it is constructed with a FILE* and a name, the name is arbitrary.
Constructors, destructors, conversion operators
- Appender(Appender&& rhs) noexcept
- Move constructor.
- Appender(const Appender&) deleted
- Appender is non-copyable.
- Appender(const std::string& filename) explicit
- Constructs an Appender for appending to the given file.
- Appender(const std::string& name, FILE* stream)
- Constructs an Appender for appending to the given
FILE. - ~Appender() noexcept
- Destructor.
Public functions
Function documentation
arcstk:: Appender:: Appender(Appender&& rhs) noexcept
Move constructor.
| Parameters | |
|---|---|
| rhs in | The instance to move |
void arcstk:: Appender:: append(const std::string& msg) const
Append the specified message.
| Parameters | |
|---|---|
| msg in | The message to append |