Hide menu
Loading...
Searching...
No Matches
cadex::Utilities::LoggerFileHandler Class Reference

Sends logging messages to a file. More...

#include <cadex/Utilities/LoggerFileHandler.hxx>

Inheritance diagram for cadex::Utilities::LoggerFileHandler:
cadex::Utilities::LoggerHandler

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.
 

Detailed Description

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.

Member Function Documentation

◆ Append()

void cadex::Utilities::LoggerFileHandler::Append ( const UTF16String & theMessage)
overridevirtual

Outputs a message into the file.

Implements cadex::Utilities::LoggerHandler.

◆ IsValid()

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.