Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
logging/logging.h@72:c5709ae7b193, 2015-02-16 (annotated)
- Committer:
- xinlei
- Date:
- Mon Feb 16 13:15:52 2015 +0000
- Revision:
- 72:c5709ae7b193
- Child:
- 73:313975bfec96
logging: incorporation of dedicated logging module.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xinlei | 72:c5709ae7b193 | 1 | #ifndef LOGGING_H |
xinlei | 72:c5709ae7b193 | 2 | #define LOGGING_H |
xinlei | 72:c5709ae7b193 | 3 | |
xinlei | 72:c5709ae7b193 | 4 | /* Enumeration of logging levels. |
xinlei | 72:c5709ae7b193 | 5 | Logging levels below have higher severity than the above levels. |
xinlei | 72:c5709ae7b193 | 6 | */ |
xinlei | 72:c5709ae7b193 | 7 | enum aLogLevel{ |
xinlei | 72:c5709ae7b193 | 8 | A_DEBUG=10, |
xinlei | 72:c5709ae7b193 | 9 | A_WARNING=20, |
xinlei | 72:c5709ae7b193 | 10 | A_INFO=30, |
xinlei | 72:c5709ae7b193 | 11 | A_ERROR=40, |
xinlei | 72:c5709ae7b193 | 12 | A_CRITICAL=50 |
xinlei | 72:c5709ae7b193 | 13 | }; |
xinlei | 72:c5709ae7b193 | 14 | |
xinlei | 72:c5709ae7b193 | 15 | int aDebug(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 16 | int aCritical(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 17 | int aError(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 18 | int aInfo(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 19 | int aWarning(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 20 | |
xinlei | 72:c5709ae7b193 | 21 | aLogLevel getLevel(); |
xinlei | 72:c5709ae7b193 | 22 | void setLevel(aLogLevel lvl); |
xinlei | 72:c5709ae7b193 | 23 | #endif /* LOGGING_H */ |