Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
logger_defs.h
00001 //********************************************************************************************************************* 00002 // LOGGER DEFINITIONS - HEADER FILE 00003 // PAUL HARRIS, OCTOBER 2016 00004 // ********************************************************************************************************************* 00005 00006 #ifndef LOGGER_DEFS_H 00007 #define LOGGER_DEFS_H 00008 00009 enum eLogLevel{ 00010 SUPPRESSED = 0, 00011 ERROR = 1, 00012 WARNING = 2, 00013 NORMAL = 3, 00014 DETAILED = 4, 00015 VERBOSE = 5 00016 }; 00017 00018 //Array of char pointers with name of log level enums for printing out (must match enums above) 00019 static const char* sLogLevel[] = { 00020 "SUPPRESSED", 00021 "ERROR", 00022 "WARNING", 00023 "NORMAL", 00024 "DETAILED", 00025 "VERBOSE" 00026 }; 00027 00028 enum eLogArea{ 00029 LOGGER = 0, //Log area for the logger itself. Required as an absolute minimum. 00030 MAIN = 1, 00031 SYSTEM_CONTROL = 2, 00032 LIDAR_IF = 3, 00033 LIDAR_CONTROL = 4, 00034 MOTOR_CONTROL = 5, 00035 ENCODER = 6, 00036 EVENT = 7, 00037 OBSERVER = 8 00038 }; 00039 00040 //Array of char pointers with name of log area enums for printing out (must match enums above) 00041 static const char* sLogArea[] = { 00042 "LOGGER", 00043 "MAIN", 00044 "SYSTEM_CONTROL", 00045 "LIDAR_IF", 00046 "LIDAR_CONTROL", 00047 "MOTOR_CONTROL", 00048 "ENCODER", 00049 "EVENT", 00050 "OBSERVER" 00051 }; 00052 00053 #endif
Generated on Mon Jul 18 2022 02:31:04 by
1.7.2