Table of Contents

 
CError
 

Purpose

Optional class constructor

 

Protoype

CError::CError(string str_filename, string str_config = "", string str_app = "CApp Application")
 

Parameters

filename the name or path of the file to create as the log
config the name or path of the configuration file, if any
app the name of the application
 

Description

This constructor acts as a replacement for OpenLog() and LoadConfig() and allows you to create the log file when CError is instanced.

 

Use

CError error("my_log.txt", "log.cfg", "Test App"); 
 

Prev: _EatWhite
Next: CloseLog