Hide menu
Loading...
Searching...
No Matches
cadex::Base_LoggerFileAppender Class Reference

Provides logging messages in the file. More...

#include <cadex/Base_LoggerFileAppender.hxx>

Inheritance diagram for cadex::Base_LoggerFileAppender:
cadex::Base_LoggerAppender

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_LoggerAppenderoperator= (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 UTF16CharPointerType
 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_LoggerAppenderThis ()
 Returns a pointer to this object.
 

Detailed Description

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.

Examples
misc/logging/Program.cs, and misc/logging/main.cxx.

Member Function Documentation

◆ Append()

void cadex::Base_LoggerFileAppender::Append ( CharPointerType  theMessage)
virtual

Outputs a message into the file.

Implements cadex::Base_LoggerAppender.

◆ IsValid()

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.