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. | |
Public Member Functions inherited from cadex::Utilities::LoggerHandler | |
| virtual | ~LoggerHandler () |
| Destructor. | |
| internal::LoggerHandlerImpl * | Impl () const |
| Reserved for internal use. | |
| template<typename T > | |
| T * | Impl () const |
| Reserved for internal use. | |
Additional Inherited Members | |
Protected Member Functions inherited from cadex::Utilities::LoggerHandler | |
| 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.