ACSMDownloader

ACSMDownloader Git Source Tree

Root/include/log.h

Source at commit 1f582f55f35b3a6898ced8d388e043ee81168bd1 created 4 months 21 days ago.
By Grégory Soutadé, First clean working version
1#ifndef _LOG_H_
2#define _LOG_H_
3
4extern int verbose;
5
6enum {
7 ERROR,
8 INFO,
9 WARN,
10 DEBUG,
11 TRACE
12};
13
14#define LOG(lvl, msg) if (lvl <= verbose) {std::cout << msg << std::endl;}
15
16#define LOG_FUNC() LOG(TRACE, __FUNCTION__)
17
18#endif

Archive Download this file

Branches