forked from itead/ITEADSW_GSM
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLOG.h
More file actions
33 lines (28 loc) · 638 Bytes
/
LOG.h
File metadata and controls
33 lines (28 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
LOG.h - Library for standard logging convention.
Created by Meir Michanie, June 9, 2010.
Released into the public domain.
Version 0.1
*/
#ifndef LOG_h
#define LOG_h
#include "Arduino.h"
class LOG {
public:
LOG(int level);
void DEBUG(const char* string);
void INFO(const char* string);
void WARNING(const char* string);
void CRITICAL(const char* string);
void DATA(const char* string);
void DATA(int number);
inline int getLevel(void) {
return _level;
}
inline void setLevel(int level) {
_level = level;
}
private:
int _level;
};
#endif