libnebular::Log Class Reference
[Plugin API]

Logging facilities. More...

#include <libnebular-plugin.hpp>

List of all members.

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

Detailed Description

Logging facilities.

See also:
LogListener

Definition at line 75 of file libnebular-plugin.hpp.


Constructor & Destructor Documentation

libnebular::Log::Log (  ) 
libnebular::Log::~Log (  ) 

Member Function Documentation

template<typename T >
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.

Here is the caller graph for this function:

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.


Friends And Related Function Documentation

friend class LogListener [friend]

Definition at line 77 of file libnebular-plugin.hpp.


The documentation for this class was generated from the following files:
Generated on Sun May 29 18:23:56 2011 for libnebular by  doxygen 1.6.3