ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
consolelogger.cpp
1using namespace alib;
2
4 if ( phase == lang::Phase::Begin )
5 writer.Construct(std::cout, ma);
6 if ( phase == lang::Phase::End ) {
7 writer->Write( NNEW_LINE );
8 writer.Destruct();
9 ma.Reset();
10 }
11 return true;
12}
13
15 integer printedWidth;
16 writer->Write( buffer.Substring<NC>( start, length ), &printedWidth );
17 return printedWidth;
18}
virtual integer logPlainTextPart(const String &buffer, integer start, integer length) override
MonoAllocator ma
Allocator used for the #"std::OStreamWriter".
virtual bool notifyPlainTextLogOp(lang::Phase phase) override
lang::Placeholder< OStreamWriter< nchar, MonoAllocator, true > > writer
TString< TChar > Substring(integer regionStart, integer regionLength=MAX_LEN) const
Definition string.hpp:368
Phase
Denotes a phase, e.g.,of a transaction.
@ Begin
The start of a transaction.
@ End
The end of a transaction.
Definition alox.cpp:14
lang::integer integer
Type alias in namespace #"%alib".
Definition integers.hpp:149
strings::TString< character > String
Type alias in namespace #"%alib".
Definition string.hpp:2165
constexpr NCString NNEW_LINE
A zero-terminated string containing the new-line character sequence.
Definition cstring.hpp:545