Logging facilities. More...
#include <libnebular-plugin.hpp>
Classes | |
class | Impl_ |
Public Member Functions | |
Log () | |
~Log () | |
Static Public Member Functions | |
static void | warning (const std::string &message) |
Report warning. | |
static void | info (const std::string &message) |
Report informational message. | |
template<typename T > | |
static const String | getWrongValueMsg (const String &key, const T &value, const String &shouldBe, const String &where, const String &wrongnessType) |
Uniform "wrong value"-like message formatter for errors and warnings. | |
Friends | |
class | LogListener |
Logging facilities.
LogListener
Definition at line 75 of file libnebular-plugin.hpp.
libnebular::Log::Log | ( | ) |
libnebular::Log::~Log | ( | ) |
const String libnebular::Log::getWrongValueMsg | ( | const String & | key, | |
const T & | value, | |||
const String & | shouldBe, | |||
const String & | where, | |||
const String & | wrongnessType | |||
) | [inline, static] |
Uniform "wrong value"-like message formatter for errors and warnings.
Says something like "⟨wrongnessType⟩ value[ in ⟨where⟩]: ⟨key⟩=⟨value⟩[; should be ⟨shouldBe⟩]" Optional parts, marked by "[", "]", are omitted in case when "corresponding" function argument is empty string
Definition at line 29 of file libnebular-plugin.templates.hpp.
void libnebular::Log::info | ( | const std::string & | message | ) | [static] |
Report informational message.
Definition at line 92 of file libnebular.cpp.
void libnebular::Log::warning | ( | const std::string & | message | ) | [static] |
Report warning.
Definition at line 88 of file libnebular.cpp.
friend class LogListener [friend] |
Definition at line 77 of file libnebular-plugin.hpp.