Sends logging messages to a file. More...
#include <cadex/Utilities/LoggerFileHandler.hxx>
Public Member Functions | |
LoggerFileHandler (const UTF16String &theFileName) | |
Constructor. | |
bool | IsValid () const |
Returns true if the output file is in a valid state. | |
void | Append (const UTF16String &theMessage) override |
Outputs a message into the file. | |
![]() | |
virtual | ~LoggerHandler () |
Destructor. | |
internal::LoggerHandlerImpl * | Impl () const |
Reserved for internal use. | |
template<typename T > | |
T * | Impl () const |
Reserved for internal use. | |
Additional Inherited Members | |
![]() | |
LoggerHandler (std::unique_ptr< internal::LoggerHandlerImpl > &&theImpl) | |
Constructor. | |
Sends logging messages to a file.
The file name can be specified with ascii or Unicode symbols.
IsValid() returns true if the file has been successfully opened and can be used for output.
|
overridevirtual |
Outputs a message into the file.
Implements cadex::Utilities::LoggerHandler.
bool cadex::Utilities::LoggerFileHandler::IsValid | ( | ) | const |
Returns true if the output file is in a valid state.
Returns false if the file could not be opened or some other error occured.