Provides the means to log debug text to various log areas and at various severity levels and send it to a MODSERIAL serial port object for output.
Diff: cLogger.cpp
- Revision:
- 1:e1be56fa979a
- Parent:
- 0:23f7bb983ae0
- Child:
- 2:f1b41864f865
--- a/cLogger.cpp Fri Jun 02 16:54:30 2017 +0000 +++ b/cLogger.cpp Sat Jun 10 23:07:20 2017 +0000 @@ -15,6 +15,17 @@ //Register the LOG area as the first log area for use by the cLogger itself registerLogArea(LOGGER, ERROR, "LOGGER>> "); + + //Register required log areas here and set default log levels: + registerLogArea(MAIN, NORMAL, "MAIN>>"); + registerLogArea(MAIN_CONTROL, NORMAL, "MAIN_CONTROL>>"); + registerLogArea(LIDAR_IF, SUPPRESSED, "LIDAR_IF>>"); + registerLogArea(LIDAR_CONTROL, SUPPRESSED, "LIDAR_CONTROL>>"); + registerLogArea(MOTOR_CONTROL, SUPPRESSED, "MOTOR_CONTROL>>"); + registerLogArea(ENCODER, SUPPRESSED, "ENCODER>>"); + registerLogArea(EVENT, DETAILED, "EVENT>>"); + registerLogArea(OBSERVER, DETAILED, "OBSERVER>>"); + } //***********Begin public member functions************ @@ -187,3 +198,5 @@ //***********End private member functions************ + +