19namespace alib {
namespace lox {
namespace loggers {
36 (void) useLightColors.
Define();
109 if( c ==
'C' || c ==
'c' )
111 bool isForeGround= ( c==
'c' );
118 colNo+= isForeGround ? 0 : 10;
171 default:
ALIB_ERROR(
"ALOX",
"Error in ANSI Code" )
189 else if ( c ==
't' || c ==
'A' )
192 int extraSpace= c >=
'0' && c <=
'9' ? ( c -
'0' )
198 integer qtySpaces= tabStop - column;
ALIB_API bool Define(Priority requestedPriority=Priority::Standard)
Priority GetPriority() const
ALIB_API void Import(const String &src, Priority priority, const StringEscaper *escaper=nullptr)
threads::SharedLock & GetConfigLock()
const String & GetResource(const NString &name)
virtual ALIB_API ~AnsiConsoleLogger() override
Destructs an AnsiConsoleLogger.
ALIB_API AnsiConsoleLogger(const NString &name=nullptr)
static constexpr character ANSI_LIGHT_RED[11]
Select light red as foreground color.
static constexpr character ANSI_BG_LIGHT_BLUE[11]
Select light blue as background color.
static constexpr character ANSI_BG_GREEN[6]
Select green as background color.
static constexpr character ANSI_BOLD[5]
Select bold font style.
virtual ALIB_API ~AnsiLogger() override
Destructs an AnsiLogger.
static constexpr character ANSI_GREEN[6]
Select green as foreground color.
static constexpr character ANSI_BG_MAGENTA[6]
Select magenta as background color.
static constexpr character ANSI_LIGHT_GREEN[11]
Select light green as foreground color.
static constexpr character ANSI_ITALICS[5]
Select italics font style.
static constexpr character ANSI_RESET[5]
Reset colors and font style.
static constexpr character ANSI_BG_BLUE[6]
Select blue as background color.
static constexpr character ANSI_LIGHT_GRAY[12]
Select light gray as foreground color.
static constexpr character ANSI_BG_WHITE[11]
Select white as background color.
static constexpr character ANSI_BG_LIGHT_YELLOW[11]
Select light yellow as background color.
static constexpr character ANSI_CYAN[6]
Select cyan as foreground color.
static constexpr character ANSI_WHITE[11]
Select white as foreground color.
static constexpr character ANSI_BG_CYAN[6]
Select cyan as background color.
static constexpr character ANSI_BG_LIGHT_GRAY[12]
Select light gray as background color.
static constexpr character ANSI_STD_COL[6]
Select standard foreground color.
static constexpr character ANSI_LIGHT_CYAN[11]
Select light cyan as foreground color.
static constexpr character ANSI_RED[6]
Select red as foreground color.
static constexpr character ANSI_BG_LIGHT_GREEN[11]
Select light green as background color.
static constexpr character ANSI_BLACK[6]
Select black as foreground color.
static constexpr character ANSI_BG_YELLOW[6]
Select yellow as background color.
static constexpr character ANSI_BG_LIGHT_MAGENTA[11]
Select light magenta as background color.
static constexpr character ANSI_GRAY[12]
Select gray as foreground color.
static constexpr character ANSI_BLUE[6]
Select blue as foreground color.
static constexpr character ANSI_BG_BLACK[6]
Select black as background color.
virtual ALIB_API void AcknowledgeLox(detail::LoxImpl *lox, lang::ContainerOp op) override
static constexpr character ANSI_BG_LIGHT_CYAN[11]
Select light cyan as background color.
static constexpr character ANSI_LIGHT_BLUE[11]
Select light blue as foreground color.
static constexpr character ANSI_YELLOW[6]
Select yellow as foreground color.
virtual ALIB_API void logText(detail::Domain &domain, Verbosity verbosity, AString &msg, detail::ScopeInfo &scope, int lineNumber) override
static constexpr character ANSI_MAGENTA[6]
Select magenta as foreground color.
static constexpr character ANSI_BG_LIGHT_RED[11]
Select light red as background color.
static constexpr character ANSI_BG_GRAY[12]
Select gray as background color.
static constexpr character ANSI_LIGHT_YELLOW[11]
Select light yellow as foreground color.
textlogger::ColorfulLoggerParameters CFP
static constexpr character ANSI_BG_STD_COL[6]
Select standard background color.
static constexpr character ANSI_LIGHT_MAGENTA[11]
Select light magenta as foreground color.
static constexpr character ANSI_BG_RED[6]
Select red as background color.
Variable varFormatAutoSizes
FormatMetaInfo & GetFormatMetaInfo()
Variable varFormatMetaInfo
virtual ALIB_API void AcknowledgeLox(detail::LoxImpl *lox, lang::ContainerOp op) override
integer IndexOf(TChar needle, integer startIdx=0) const
constexpr bool IsNotEmpty() const
constexpr integer Length() const
TChar CharAtStart() const
TString< TChar > Substring(integer regionStart, integer regionLength=MAX_LEN) const
constexpr const TChar * Buffer() const
integer WStringLength() const
integer ConsumeChars(integer regionLength, TSubstring *target=nullptr)
::std::ostream * GetStream()
ALIB_API void Write(const NString &src)
ALIB_API void WriteChars(const nchar fillChar, integer count)
@ Tabstop
denotes a tab stop entry.
ALIB_API TSubstring< TChar > & Next(lang::Whitespaces trimming=lang::Whitespaces::Trim, TChar newDelim='\0')
TSubstring< TChar > Actual
#define ALIB_WARNING(...)
#define ALIB_ASSERT_WARNING(cond,...)
#define ALIB_LOCK_WITH(lock)
@ Keep
Keep whitespaces in string.
ContainerOp
Denotes standard container operations.
@ Insert
Denotes insertions.
@ CONSOLE_LIGHT_COLORS
Denotes configuration variable ALOX/CONSOLE_LIGHT_COLORS used by colorful specializations of class Te...
lox::ALoxCamp ALOX
The singleton instance of ALib Camp class ALoxCamp.
strings::TSubstring< character > Substring
Type alias in namespace alib.
characters::character character
Type alias in namespace alib.
lang::integer integer
Type alias in namespace alib.
Parameters specific to colorful loggers. As of today, this simply has one attribute.
@ Foreground
Use light colors for foreground.
@ Never
Never use light colors.