aboutsummaryrefslogtreecommitdiff
path: root/Logger.hpp
blob: 0925b6981dea8def11e53ab11ea8c1c192cf1af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef LOGGER_HPP
#define LOGGER_HPP 1

#include <iostream>

using std::string;

#define LOGGER_PROGRESS_UNIT 3 // %

class CLogger {
private:
    static bool mLogInfo;
    static int mProgressLastPercent;
public:
    static void error(const string & msg, int returnValue);
    static void warning(const string & msg);
    static void info(const string & msg);
    static void progress(uint32_t b, uint32_t n);
    static void setLogInfo(bool b);
    static string decToHex(int dec);
};

#endif