38 std::ofstream*
ofs =
nullptr;
virtual ALIB_DLL void notifyMultiLineOp(lang::Phase phase) override
lang::Placeholder< OStreamWriter< nchar, MonoAllocator, true > > writer
ALIB_DLL void openFile()
Opens the file.
virtual ALIB_DLL bool notifyPlainTextLogOp(lang::Phase phase) override
virtual ~TextFileLogger() override
Destructs a TextFileLogger.
bool currentlyInMultiLineOp
Flag to prevent file open/close operations when multi-line text logging is performed.
ALIB_DLL void closeFile()
Closes the file.
std::ofstream * ofs
Encapsulates the text file stream in a system-dependent way.
MonoAllocator ma
Allocator used for the OStreamWriter.
virtual ALIB_DLL integer logPlainTextPart(const String &buffer, integer start, integer length) override
ALIB_DLL TextFileLogger(const alib::String &fileName, const alib::NString &loggerName=nullptr)
alib::AString FileName
The path and fileName to the log file.
SystemErrors LastSystemError
Phase
Denotes a phase, e.g.,of a transaction.
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace alib.
lox::loggers::TextFileLogger TextFileLogger
Type alias in namespace alib.
lang::integer integer
Type alias in namespace alib.
strings::TString< nchar > NString
Type alias in namespace alib.
monomem::TMonoAllocator< lang::HeapAllocator > MonoAllocator
strings::TString< character > String
Type alias in namespace alib.
system::SystemErrors SystemErrors
Type alias in namespace alib.