iSpike  2.1
Spike conversion library for robotics
ispike::Log Class Reference

#include <Log.hpp>

List of all members.

Public Member Functions

 Log ()
virtual ~Log ()
ostringstream & Get (TLogLevel level=LOG_DEBUG)

Static Public Member Functions

static TLogLevelReportingLevel ()

Static Public Attributes

static int currentId = 0

Protected Attributes

ostringstream os

Detailed Description

A simple logging class based on this article: http://drdobbs.com/cpp/201804215?pgno=1

Definition at line 25 of file Log.hpp.


Constructor & Destructor Documentation

Log::Log ( )

Constructor

Definition at line 12 of file Log.cpp.

Log::~Log ( ) [virtual]

Destructor

Definition at line 17 of file Log.cpp.


Member Function Documentation

ostringstream & Log::Get ( TLogLevel  level = LOG_DEBUG)

Definition at line 61 of file Log.cpp.

Definition at line 24 of file Log.cpp.


Member Data Documentation

int Log::currentId = 0 [static]

Definition at line 31 of file Log.hpp.

ostringstream ispike::Log::os [protected]

Definition at line 34 of file Log.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines