Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Committer:
xinlei
Date:
Wed Feb 18 10:19:51 2015 +0000
Revision:
75:d4535238db18
Parent:
73:313975bfec96
Child:
77:f6717e4eccc4
logging: fixes reversed severity levels for 'warning' and 'info'.

Who changed what in which revision?

UserRevisionLine numberNew 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 75:d4535238db18 9 A_INFO=20,
xinlei 75:d4535238db18 10 A_WARNING=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 aInfo(const char *fmt, ...);
xinlei 72:c5709ae7b193 22 int aWarning(const char *fmt, ...);
xinlei 75:d4535238db18 23 int aError(const char *fmt, ...);
xinlei 75:d4535238db18 24 int aCritical(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 */