Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
logging/logging.h@73:313975bfec96, 2015-02-17 (annotated)
- Committer:
- xinlei
- Date:
- Tue Feb 17 16:31:30 2015 +0000
- Revision:
- 73:313975bfec96
- Parent:
- 72:c5709ae7b193
- Child:
- 75:d4535238db18
measurements: displaying concrete information on LCD display, timing of sending operation.
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 | 73:313975bfec96 | 15 | /* All logging functions. |
xinlei | 73:313975bfec96 | 16 | * Function name indicates the corresponding logging level. |
xinlei | 73:313975bfec96 | 17 | * First argument is a format string, remaining arguments |
xinlei | 73:313975bfec96 | 18 | * must correspond to the given format, like in printf. |
xinlei | 73:313975bfec96 | 19 | */ |
xinlei | 72:c5709ae7b193 | 20 | int aDebug(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 21 | int aCritical(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 22 | int aError(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 23 | int aInfo(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 24 | int aWarning(const char *fmt, ...); |
xinlei | 72:c5709ae7b193 | 25 | |
xinlei | 72:c5709ae7b193 | 26 | aLogLevel getLevel(); |
xinlei | 72:c5709ae7b193 | 27 | void setLevel(aLogLevel lvl); |
xinlei | 72:c5709ae7b193 | 28 | #endif /* LOGGING_H */ |