10# if !defined(HPP_ALOX_ANSI_LOGGER)
14# if !defined(HPP_ALIB_STRINGS_UTIL_SPACES)
18# if !defined (HPP_ALIB_ALOXMODULE)
21# if !defined (HPP_ALIB_STRINGS_UTIL_TOKENIZER)
24# if !defined(HPP_ALIB_ENUMS_SERIALIZATION)
28# if !defined(HPP_ALIB_CAMP_MESSAGE_REPORT)
35namespace alib {
namespace lox {
namespace loggers {
70 ALIB_WARNING(
"ALOX",
"Unknown value specified in variable: {} = {!Q'}.",
149 if( c ==
'C' || c ==
'c' )
151 bool isForeGround= ( c==
'c' );
158 colNo+= isForeGround ? 0 : 10;
211 default:
ALIB_ERROR(
"ALOX",
"Error in ANSI Code" )
229 else if ( c ==
't' || c ==
'A' )
232 int extraSpace= c >=
'0' && c <=
'9' ? ( c -
'0' )
237 integer qtySpaces= tabStop - column;
ALIB_API Priorities Load(Variable &variable)
ALIB_API const String & Fullname()
const String & GetString(int idx=0)
config::Configuration & GetConfig()
static constexpr character RED[4]
Select red color for foreground.
static constexpr character GRAY[4]
Select gray color for foreground.
static constexpr character BLUE[4]
Select blue color for foreground.
String16 VerbosityVerbose
String16 VerbosityWarning
@ Foreground
Use light colors for foreground.
@ Never
Never use light colors.
textlogger::MetaInfo * MetaInfo
virtual ALIB_API ~AnsiConsoleLogger() override
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
ALIB_API AnsiLogger(const NString &name=nullptr, const NString &typeName="ANSI")
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.
ALIB_API void construct()
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.
LightColorUsage UseLightColors
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.
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.
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.
TAString & _(const TString< TChar > &src, integer regionStart, integer regionLength=MAX_LEN)
ALIB_API integer SearchAndReplace(TChar needle, TChar replacement, integer startIdx=0)
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
TSubstring & Trim(const TCString< TChar > &whiteSpaces=TT_StringConstants< TChar >::DefaultWhitespaces())
integer ConsumeChars(integer regionLength, TSubstring *target=nullptr)
::std::ostream * GetStream()
void SetStream(::std::ostream *os)
void Write(const NString &src)
@ Tabstop
denotes a tab stop entry.
integer Next(Types type, integer requestedSize, integer growthPadding)
static ALIB_API void Write(std::basic_ostream< char > &os, integer qty)
ALIB_API TSubstring< TChar > & Next(lang::Whitespaces trimming=lang::Whitespaces::Trim, TChar newDelim='\0')
TSubstring< TChar > Actual
#define ALIB_WARNING(...)
#define ALIB_ASSERT_RESULT_NOT_EQUALS( func, value)
#define ALIB_ASSERT_WARNING(cond,...)
@ Keep
Keep whitespaces in string.
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.