This is a low-level network debugging utility that utilizes raw packet i/o to construct and deconstruct tcp, udp, ipv4, arp, and icmp packets over ethernet.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Log Class Reference

Log Class Reference

Combination serial/file logger. More...

#include <log.h>

Public Member Functions

 Log ()
 Constructor.
void enable (SerialLines idx)
 Enable logging to the given serial line.
void disable (SerialLines idx)
 Disable logging to the given serial line.
bool printf (char *format,...)
 This can log messages up to 4095 characters and has printf semantics All log messages include an implicit
at the end.
bool puts (const char *str)
 Put the given string (no implicit
) on all enabled serial lines and to the logfile.

Detailed Description

Combination serial/file logger.

Definition at line 28 of file log.h.


Constructor & Destructor Documentation

Log (  )

Constructor.

Definition at line 39 of file log.h.


Member Function Documentation

void disable ( SerialLines  idx )

Disable logging to the given serial line.

Definition at line 66 of file log.h.

void enable ( SerialLines  idx )

Enable logging to the given serial line.

Definition at line 60 of file log.h.

bool printf ( char *  format,
  ... 
)

This can log messages up to 4095 characters and has printf semantics All log messages include an implicit
at the end.

Definition at line 73 of file log.h.

bool puts ( const char *  str )

Put the given string (no implicit
) on all enabled serial lines and to the logfile.

Definition at line 100 of file log.h.