Paul Harris / Logger
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers logger_defs.h Source File

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