SeaBreeze
Public Member Functions | Static Public Member Functions | Static Public Attributes
Log Class Reference

Simple logger for OOI applications. More...

#include <Log.h>

Collaboration diagram for Log:
Collaboration graph

Public Member Functions

 Log (const char *s)
 
void debug (const char *fmt,...)
 
void info (const char *fmt,...)
 
void warn (const char *fmt,...)
 
void error (const char *fmt,...)
 
void formatAndSend (int lvl, const char *lvlName, const char *separator, const char *fmt, va_list args)
 

Static Public Member Functions

static void setLogLevel (int lvl)
 
static void setLogLevel (const std::string &s)
 
static void setLogFile (void *f)
 

Static Public Attributes

static unsigned logLevel
 

Detailed Description

Simple logger for OOI applications.

Todo:

Provide better thread support (hard to tell what thread model the caller may be using...)

Provide flat C interface (e.g. for NativeUSBWinUSB.c, test apps)

Provides automatic heirarchical call-stack indentation.


The documentation for this class was generated from the following file: