This library is designed to create and run state graphs. It supports hierarchical states and the parallel execution
StateMachineLib/Logger.h@1:0f11d9338d89, 2017-10-03 (annotated)
- Committer:
- martin13
- Date:
- Tue Oct 03 08:36:40 2017 +0000
- Revision:
- 1:0f11d9338d89
- Parent:
- 0:f4fdca2c4c67
added empty readme
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
martin13 | 0:f4fdca2c4c67 | 1 | //////////////////////////////////////////////////////////////////////////////// |
martin13 | 0:f4fdca2c4c67 | 2 | // Copyright Rottor SAS 2017 |
martin13 | 0:f4fdca2c4c67 | 3 | // All rigths reserved. |
martin13 | 0:f4fdca2c4c67 | 4 | // |
martin13 | 0:f4fdca2c4c67 | 5 | // File Name : MetaData.h |
martin13 | 0:f4fdca2c4c67 | 6 | // Authors : Martin Matignon |
martin13 | 0:f4fdca2c4c67 | 7 | // |
martin13 | 0:f4fdca2c4c67 | 8 | // If you find any bug or if you have any question please contact |
martin13 | 0:f4fdca2c4c67 | 9 | // Martin Matignon <martin.matignon@rottor.fr> |
martin13 | 0:f4fdca2c4c67 | 10 | // Nicolas Forestier <nicolas.forestier@rottor.fr> |
martin13 | 0:f4fdca2c4c67 | 11 | // |
martin13 | 0:f4fdca2c4c67 | 12 | //////////////////////////////////////////////////////////////////////////////// |
martin13 | 0:f4fdca2c4c67 | 13 | |
martin13 | 0:f4fdca2c4c67 | 14 | #ifndef __LOGGER_H__ |
martin13 | 0:f4fdca2c4c67 | 15 | #define __LOGGER_H__ |
martin13 | 0:f4fdca2c4c67 | 16 | |
martin13 | 0:f4fdca2c4c67 | 17 | #include "mbed.h" |
martin13 | 0:f4fdca2c4c67 | 18 | |
martin13 | 0:f4fdca2c4c67 | 19 | class Logger{ |
martin13 | 0:f4fdca2c4c67 | 20 | |
martin13 | 0:f4fdca2c4c67 | 21 | public: |
martin13 | 0:f4fdca2c4c67 | 22 | |
martin13 | 0:f4fdca2c4c67 | 23 | enum LoggerLevel_t{ |
martin13 | 0:f4fdca2c4c67 | 24 | DEBUG = 0x00, |
martin13 | 0:f4fdca2c4c67 | 25 | INFO , |
martin13 | 0:f4fdca2c4c67 | 26 | WARNING , |
martin13 | 0:f4fdca2c4c67 | 27 | ERROR |
martin13 | 0:f4fdca2c4c67 | 28 | }; |
martin13 | 0:f4fdca2c4c67 | 29 | |
martin13 | 0:f4fdca2c4c67 | 30 | static int level; |
martin13 | 0:f4fdca2c4c67 | 31 | |
martin13 | 0:f4fdca2c4c67 | 32 | Logger(int _level); |
martin13 | 0:f4fdca2c4c67 | 33 | |
martin13 | 0:f4fdca2c4c67 | 34 | static void debug(const char* format, ...); |
martin13 | 0:f4fdca2c4c67 | 35 | |
martin13 | 0:f4fdca2c4c67 | 36 | static void info(const char* format, ...); |
martin13 | 0:f4fdca2c4c67 | 37 | |
martin13 | 0:f4fdca2c4c67 | 38 | static void warn(const char* format, ...); |
martin13 | 0:f4fdca2c4c67 | 39 | |
martin13 | 0:f4fdca2c4c67 | 40 | static void err(const char* format, ...); |
martin13 | 0:f4fdca2c4c67 | 41 | }; |
martin13 | 0:f4fdca2c4c67 | 42 | |
martin13 | 0:f4fdca2c4c67 | 43 | #endif /* #ifndef __LOGGER_H__*/ |