Skip to content
Open Trading edited this page Feb 24, 2016 · 4 revisions

MQL4/Libraries/OTMql4/OTLibPyLog.mq4

This will provide our logging functions that work with Python. See OTLibLog for just a skeleton logging. We introduce a global variable fDebugLevel which ranges from 0 to 5: "PANIC", "ERROR", "WARNING", "INFO", "DEBUG", "TRACE" If you set the variable to 1, you will only see errors; if you set it to 2 you will see warnings and errors... The Mt4 code can use vLog(iLevel, uMsg) to log accordingly. The Python code can use vLog(iLevel, sMsg) to log accordingly. string dLogArray[] = {"PANIC", "ERROR", "WARNING", "INFO", "DEBUG", "TRACE"};

void vLog (int iLevel, string uMsg) We introduce 6 levels of logging: 0 - 5; a level of 0 is usually a panic and raises a messagebox

Source code: MQL4/Libraries/OTMql4/OTLibPyLog.mq4

This file is automatically generated from the source code: do not edit.


Parent: CodeLibraries