This is the sample program that can see the decode result of barcode data on Watson IoT.

Dependencies:   AsciiFont DisplayApp GR-PEACH_video LCD_shield_config LWIPBP3595Interface_STA_for_mbed-os USBDevice

Embed: (wiki syntax)

« Back to documentation index

Logger Class Reference

Logger Class Reference

Logger class. More...

#include <Logger.h>

Public Member Functions

 Logger (const Serial *pc)
 Default constructor.
 Logger (const Logger &logger)
 Copy constructor.
virtual ~Logger ()
 Destructor.
void logIt (const char *format,...)
 Log output to the given serial console.

Detailed Description

Logger class.

Definition at line 46 of file Logger.h.


Constructor & Destructor Documentation

Logger ( const Serial *  pc )

Default constructor.

Parameters:
pcinput BufferedSerial instance for debugging (if NULL, no debugging output will occur in the library)

Definition at line 27 of file Logger.cpp.

Logger ( const Logger logger )

Copy constructor.

Parameters:
loggerinput Logger instance to deep copy

Definition at line 33 of file Logger.cpp.

~Logger (  ) [virtual]

Destructor.

Definition at line 39 of file Logger.cpp.


Member Function Documentation

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

Log output to the given serial console.

Parameters:
formatinput format for the logging
...input (variable arguments to display)

Definition at line 44 of file Logger.cpp.