Logging facility for endpoints

Fork of ErrorHandler by Doug Anson

Embed: (wiki syntax)

« Back to documentation index

Logger Class Reference

Logger Class Reference

Logger Error handling class for mbed endpoints. More...

#include <Logger.h>

Public Member Functions

 Logger (RawSerial *pc, LCDCLASS *lcd)
 Default constructor.
virtual ~Logger ()
 Default destructor.
void log (const char *format,...)
 log message to the serial console and LCD (if enabled)
void logConsole (const char *format,...)
 log message to the serial console only
void turnLEDRed ()
 turn the multi-colored LED red
void turnLEDGreen ()
 turn the multi-colored LED green
void turnLEDBlue ()
 turn the multi-colored LED blue
void turnLEDPurple ()
 turn the multi-colored LED purple
void turnLEDBlack ()
 turn the multi-colored LED black
void turnLEDYellow ()
 turn the multi-colored LED yellow
void turnLEDOrange ()
 turn the multi-colored LED orange
void blinkTransportTxLED ()
 blink the transmit LED
void blinkTransportRxLED ()
 blink the receiver LED

Detailed Description

Logger Error handling class for mbed endpoints.

Definition at line 52 of file Logger.h.


Constructor & Destructor Documentation

Logger ( RawSerial *  pc,
LCDCLASS *  lcd 
)

Default constructor.

Parameters:
pcRawSerial instance
lcdLCDCLASS instance (or NULL)

Definition at line 71 of file Logger.cpp.

~Logger (  ) [virtual]

Default destructor.

Definition at line 79 of file Logger.cpp.


Member Function Documentation

void blinkTransportRxLED (  )

blink the receiver LED

Definition at line 194 of file Logger.cpp.

void blinkTransportTxLED (  )

blink the transmit LED

Definition at line 193 of file Logger.cpp.

void log ( const char *  format,
  ... 
)

log message to the serial console and LCD (if enabled)

Parameters:
formatvariable argument format

Definition at line 83 of file Logger.cpp.

void logConsole ( const char *  format,
  ... 
)

log message to the serial console only

Parameters:
formatvariable argument format

Definition at line 109 of file Logger.cpp.

void turnLEDBlack (  )

turn the multi-colored LED black

Definition at line 190 of file Logger.cpp.

void turnLEDBlue (  )

turn the multi-colored LED blue

Definition at line 187 of file Logger.cpp.

void turnLEDGreen (  )

turn the multi-colored LED green

Definition at line 186 of file Logger.cpp.

void turnLEDOrange (  )

turn the multi-colored LED orange

Definition at line 189 of file Logger.cpp.

void turnLEDPurple (  )

turn the multi-colored LED purple

Definition at line 188 of file Logger.cpp.

void turnLEDRed (  )

turn the multi-colored LED red

Definition at line 185 of file Logger.cpp.

void turnLEDYellow (  )

turn the multi-colored LED yellow

Definition at line 191 of file Logger.cpp.