ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
consolelogger.cpp
1// #################################################################################################
2// alib::lox::loggers - ALox Logging Library
3//
4// Copyright 2013-2025 A-Worx GmbH, Germany
5// Published under 'Boost Software License' (a free software license, see LICENSE.txt)
6// #################################################################################################
7#include "alib_precompile.hpp"
8#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
9# error "Symbol ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
10#endif
11#if ALIB_C20_MODULES
12 module;
13#endif
14// ====================================== Global Fragment ======================================
16#include <iostream>
17// =========================================== Module ==========================================
18#if ALIB_C20_MODULES
19 module ALib.ALox.Impl;
20 import ALib.Lang;
21 import ALib.Strings;
22#else
23# include "ALib.Lang.H"
24# include "ALib.Strings.H"
25# include "ALib.ALox.H"
26# include "ALib.ALox.Impl.H"
27#endif
28// ====================================== Implementation =======================================
29using namespace alib;
30
32{
33 if ( phase == lang::Phase::End )
34 std::cout << std::endl;
35 return true;
36}
37
39{
40 return writer.WriteAndGetWideLength( buffer.Substring<NC>( start, length ) );
41}
42
virtual ALIB_DLL integer logSubstring(const String &buffer, integer start, integer length) override
virtual ALIB_DLL bool notifyLogOp(lang::Phase phase) override
StringWriter writer
The encapsulated output stream.
TString< TChar > Substring(integer regionStart, integer regionLength=MAX_LEN) const
Definition string.inl:386
Phase
Denotes a phase, e.g.,of a transaction.
@ End
The end of a transaction.
lang::integer integer
Type alias in namespace alib.
Definition integers.inl:149
strings::TString< character > String
Type alias in namespace alib.
Definition string.inl:2381