Libraries: Logging V2 for both MQL4 and MQL5

 

Logging V2 for both MQL4 and MQL5:

The CDebugLogger class is a flexible and comprehensive logging utility designed for use in MQL4/5 environments. It allows developers to log messages at various levels of importance (INFO, WARNING, ERROR, DEBUG) with options to include timestamps, function signatures, file names, and line numbers in the log entries. The class supports logging to both the console and files, with the ability to save logs in a common folder and in CSV format. Additionally, it offers functionality to silence logs based on specific keywords, ensuring that sensitive information is not logged. This class is ideal for developers looking to implement robust logging mechanisms in their MQL4/5 applications, with customizable features that cater to a wide range of debugging and monitoring needs.

Author: VitalDefender Inc.

 
Thanks for a concise and useful library. I have one suggestion: Please flush the file on every write and close the file in destructor. It would be more efficient.