ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
vstudiologger.cpp
1#if defined(_MSC_VER) && ALIB_DEBUG
2
3using namespace alib;
4using namespace alib::lox;
5using namespace alib::lox::detail;
6
7//##################################################################################################
8// Constructor/Destructor
9//##################################################################################################
10
12: PlainTextLogger( name, "VSTUDIO_CONSOLE" )
13{
14 ALIB_ASSERT_ERROR ( BASECAMP.IsDebuggerPresent(), "ALOX",
15 "This is not a debug session within Visual Studio" )
16}
17
21 return;
22
23 // prevent cutting off filenames
24 auto& fmt= GetFormatMetaInfo();
25 fmt.Format.SearchAndReplace( A_CHAR("%SF:%SL:"), A_CHAR("%SP\\%SF(%SL):") );
26}
27
29{
30 if ( phase == lang::Phase::End )
31 OutputDebugStringA( "\r\n" );
32 return true;
33}
34
36{
37 outputString.Reset( String(buffer.Buffer() + start, length ) );
39 OutputDebugStringA ( dest );
40 return outputString.WStringLength();
41}
42
43
44#endif //defined(_MSC_VER) && ALIB_DEBUG
#define A_CHAR(STR)
#define ALIB_ASSERT_ERROR(cond, domain,...)
virtual integer logPlainTextPart(const String &buffer, integer start, integer length)
virtual bool notifyPlainTextLogOp(lang::Phase phase)
virtual void AcknowledgeLox(detail::LoxImpl *lox, lang::ContainerOp op) override
VStudioLogger(const NString &name=nullptr)
PlainTextLogger(const NString &name, const NString &typeName)
virtual void AcknowledgeLox(detail::LoxImpl *lox, lang::ContainerOp op) override
FormatMetaInfo & GetFormatMetaInfo()
constexpr const TChar * Buffer() const
Definition string.hpp:295
ContainerOp
Denotes standard container operations.
@ Insert
Denotes insertions.
Phase
Denotes a phase, e.g.,of a transaction.
@ End
The end of a transaction.
Definition alox.cpp:14
strings::TString< nchar > NString
Type alias in namespace #"%alib".
Definition string.hpp:2174
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
camp::Basecamp BASECAMP
The singleton instance of ALib Camp class #"Basecamp".
Definition basecamp.cpp:2
#define ALIB_STRINGS_TO_NARROW( src, dest, bufSize)