/*******************************************************************************
*                                                                              *
* Société de Transports de Montréal.                                    	   *
* 2012                                                                         *
*                                                                              *
* Projet Zones Tests                                                           *
*                                                                              *
*                                                                              *
*                                                                              *
*******************************************************************************/
/*
    Description:
    Description du fichier si nécessaire.
    
*/

/* ************************************************************************** */
/* Revision:
### 20121219 JFM
    Verision d'origine.
    
### YYYYMMDD Description du besoin ou du bug
    Description du changement.
 */

/* ************************************************************************** */
#include "GlobalDefine.h"

#ifndef ENGLOG_H
#define ENGLOG_H

#include <QFile>

#define USE_SINGLE_ENGINEERING_FILE

class CEngLog
{
public:

    //CEngLog is a singleton class
    static CEngLog* instance(){return &mSingleton;}
    static CEngLog mSingleton;

    CEngLog();
    ~CEngLog();

    void AddLogString(QString string, unsigned int Verbosity = 3);
    void WriteFormattedString(QString string);
	void Init(unsigned int Verbosity);
	unsigned int DeleteEngLogFile();

private:
    QFile *mEngLogFile;
    unsigned int mVerbosity;




};

#endif // ENGLOG_H
