Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers logging.h Source File

logging.h

00001 #ifndef LOGGING_H
00002 #define LOGGING_H
00003 
00004 /* Enumeration of logging levels.
00005    Logging levels below have higher severity than the above levels.
00006  */
00007 enum aLogLevel{
00008         A_DEBUG=1,
00009         A_INFO,
00010         A_WARNING,
00011         A_ERROR,
00012         A_CRITICAL,
00013         A_NONE     // No logging
00014 };
00015 
00016 /* All logging functions.
00017  * Function name indicates the corresponding logging level.
00018  * First argument is a format string, remaining arguments
00019  * must correspond to the given format, like in printf.
00020  */
00021 int aDebug(const char *fmt, ...);
00022 int aInfo(const char *fmt, ...);
00023 int aWarning(const char *fmt, ...);
00024 int aError(const char *fmt, ...);
00025 int aCritical(const char *fmt, ...);
00026 
00027 aLogLevel getLevel();
00028 void setLevel(aLogLevel lvl);
00029 void higherOneLevel();  // Set log level one severity higher (terser), does nothing when already highest
00030 void lowerOneLevel();   // Set log level one severity lower (chattier), does nothing when already lowerest
00031 #endif /* LOGGING_H */