Fork me on GitHub
Library for MQL5 (MetaTrader) with support for Spark
CLog4MqlFile Class Reference
Inheritance diagram for CLog4MqlFile:
CLog4Mql

The documentation for this class was generated from the following file:

Public Member Functions

 CLog4MqlFile (LOG_LEVEL lvl, const string text)
 Due to inheritance restriction, this class constructor had to be made public, but it is not recommended to use it. More...
 
virtual string build ()
 Compile and display a message. More...
 
- Public Member Functions inherited from CLog4Mql
_LOG_CLASSa (const string value)
 Adds the value of the variable to the message. More...
 
_LOG_CLASSadd (const string value)
 Adds the value of the variable to the message. More...
 

Static Public Member Functions

static int setFile (string filename="", bool file_common=false)
 
static int getFileHandle ()
 
- Static Public Member Functions inherited from CLog4Mql
static _LOG_CLASStrace (const string text)
 
static _LOG_CLASSdebug (const string text)
 
static _LOG_CLASSinfo (const string text)
 
static _LOG_CLASSwarn (const string text)
 
static _LOG_CLASSerror (const string text)
 
static bool isTraceEnabled ()
 
static bool isDebugEnabled ()
 
static bool isInfoEnabled ()
 
static bool isWarnEnabled ()
 
static bool isErrorEnabled ()
 

Protected Member Functions

 ~CLog4MqlFile ()
 
- Protected Member Functions inherited from CLog4Mql
 CLog4Mql (LOG_LEVEL lvl, const string text)
 
 ~CLog4Mql ()
 
string buildMessage ()
 
virtual string getLevel ()
 
virtual string getMessage ()
 

Static Protected Attributes

static int hlog = INVALID_HANDLE
 

Additional Inherited Members

- Static Public Attributes inherited from CLog4Mql
static bool doPrint = true
 Use Print() ? More...
 
- Protected Attributes inherited from CLog4Mql
string message
 
string args []
 
LOG_LEVEL lglvl
 

Constructor & Destructor Documentation

◆ ~CLog4MqlFile()

CLog4MqlFile::~CLog4MqlFile ( )
protected

◆ CLog4MqlFile()

CLog4MqlFile::CLog4MqlFile ( LOG_LEVEL  lvl,
const string  text 
)

Due to inheritance restriction, this class constructor had to be made public, but it is not recommended to use it.

Member Function Documentation

◆ build()

virtual string CLog4MqlFile::build ( )
virtual

Compile and display a message.

See also
http://www.slf4j.org/apidocs/org/slf4j/helpers/MessageFormatter.html

Reimplemented from CLog4Mql.

◆ getFileHandle()

static int CLog4MqlFile::getFileHandle ( )
static

◆ setFile()

static int CLog4MqlFile::setFile ( string  filename = "",
bool  file_common = false 
)
static

Member Data Documentation

◆ hlog

int CLog4MqlFile::hlog = INVALID_HANDLE
staticprotected