A logger that logs all messages to the standard output cout. The name of the Logger defaults to "CONSOLE".
ALox text logger escape sequences (see class ESC) are removed and ignored.
Definition at line 37 of file consolelogger.hpp.
#include <consolelogger.hpp>
Public Method Index: | |
ConsoleLogger (const NString &name=nullptr) | |
virtual | ~ConsoleLogger () override |
Public Method Index: inherited from TextLogger | |
virtual ALIB_API | ~TextLogger () override |
virtual ALIB_API void | AcknowledgeLox (LoxImpl *lox, lang::ContainerOp op) override |
virtual ALIB_API void | ClearReplacements () |
virtual ALIB_API void | Log (Domain &domain, Verbosity verbosity, Boxes &logables, ScopeInfo &scope) override |
virtual ALIB_API void | ResetAutoSizes () |
virtual ALIB_API void | SetReplacement (const String &searched, const String &replacement) |
Public Method Index: inherited from Logger | |
virtual | ~Logger () |
const NString & | GetName () const |
const NString & | GetTypeName () const |
Public Method Index: inherited from SmartLock | |
SmartLock () | |
void | Acquire (const NCString &dbgFile, int dbgLine, const NCString &dbgFunc) |
ALIB_API int | AddAcquirer (ThreadLock *newAcquirer) |
ALIB_API int | CntAcquirers () |
ALIB_API void | Release () |
defined(ALIB_DOX) | |
ALIB_API int | RemoveAcquirer (ThreadLock *acquirer) |
Public Method Index: inherited from ThreadLock | |
ALIB_API | ThreadLock (lang::Safeness safeness=lang::Safeness::Safe) |
ALIB_API | ~ThreadLock () |
ALIB_API void | Acquire (const NCString &dbgFile, int dbgLine, const NCString &dbgFunc) |
int | CountAcquirements () const |
Thread * | GetOwner () const |
lang::Safeness | GetSafeness () const |
bool | IsOwnedByCurrentThread () const |
ALIB_API void | Release () |
defined(ALIB_DOX) | |
ALIB_API void | SetSafeness (lang::Safeness safeness) |
bool | WillRelease () const |
|
protected |
The encapsulated output stream.
Definition at line 41 of file consolelogger.hpp.
|
inlineexplicit |
Creates a ConsoleLogger.
name | (Optional) The name of the Logger, defaults to "CONSOLE". |
Definition at line 51 of file consolelogger.hpp.
|
inlineoverridevirtual |
|
overrideprotectedvirtual |
Writes the given region of the given string to the console.
buffer | The string to write a portion of. |
start | The start of the portion in buffer to write out. |
length | The length of the portion in buffer to write out. |
Implements PlainTextLogger.
Definition at line 25 of file consolelogger.cpp.
|
overrideprotectedvirtual |
Starts/ends log line. Appends a new-line character sequence to previously logged lines.
phase | Indicates the beginning or end of a log line. |
Implements PlainTextLogger.
Definition at line 18 of file consolelogger.cpp.
|
inlineoverrideprotectedvirtual |
Empty implementation, not needed for this class
Implements TextLogger.
Definition at line 90 of file consolelogger.hpp.