Provides logging messages in the file. More...
#include <cadex/Base_LoggerFileAppender.hxx>
Public Member Functions | |
Base_LoggerFileAppender (const char *theFileName) | |
Constructor. | |
bool | IsValid () const |
Returns true if the output file is in a valid state. | |
virtual void | Append (CharPointerType theMessage) |
Outputs a message into the file. | |
Public Member Functions inherited from cadex::Base_LoggerAppender | |
virtual | ~Base_LoggerAppender () |
Destructor. | |
Base_LoggerAppender & | operator= (const Base_LoggerAppender &theAppender) |
Assignment operator. | |
virtual void | Append (CharPointerType theMessage)=0 |
Appends a message. | |
const std::shared_ptr< internal::Base_LoggerAppenderImpl > & | Impl () const |
Returns internal implementation object. | |
Additional Inherited Members | |
Public Types inherited from cadex::Base_LoggerAppender | |
typedef UTF16 | CharType |
Defines a character type of user-visible strings. | |
typedef const UTF16 * | CharPointerType |
Defines a type of the pointer to the character type. | |
Protected Member Functions inherited from cadex::Base_LoggerAppender | |
Base_LoggerAppender () | |
Constructor. | |
Base_LoggerAppender (const std::shared_ptr< internal::Base_LoggerAppenderImpl > &theImpl) | |
Constructor. | |
Base_LoggerAppender (const Base_LoggerAppender &theAppender) | |
Constructor. | |
void | Construct (const std::shared_ptr< internal::Base_LoggerAppenderImpl > &theImpl) |
Delayed constructor. | |
Base_LoggerAppender * | This () |
Returns a pointer to this object. | |
Provides logging messages in the 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.
|
virtual |
Outputs a message into the file.
Implements cadex::Base_LoggerAppender.
bool cadex::Base_LoggerFileAppender::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.