Log Class Reference

Unified Logging interface. More...

#include <Log.h>

Inheritance diagram for Log:

ParseData JSONParseData

List of all members.

Public Member Functions

 Log (bool debug=false)
Logoperator= (Log &data)
virtual void init ()
virtual void setDebug (bool debug)

Public Attributes

std::ostream & warning
std::ostream & error
std::ostream & info

Protected Member Functions

int _getDepth () const

Protected Attributes

int _depth
bool _debug

Static Protected Attributes

static std::ostream s_null

Friends

std::ostream & operator<< (Log &data, const std::string &s)
std::ostream & operator<< (Log &data, const char *s)


Detailed Description

Unified Logging interface.

Unified logging functionality for Milton debugging output.

Author:
Travis Fischer (fisch0920@gmail.com)

Matthew Jacobs (jacobs.mh@gmail.com)

Date:
Fall 2008

Definition at line 36 of file Log.h.


Constructor & Destructor Documentation

Log::Log ( bool  debug = false  )  [inline]

Definition at line 38 of file Log.h.


Member Function Documentation

Log& Log::operator= ( Log data  )  [inline]

Definition at line 45 of file Log.h.

void Log::init (  )  [virtual]

Definition at line 16 of file Log.cpp.

void Log::setDebug ( bool  debug  )  [virtual]

Definition at line 21 of file Log.cpp.

int Log::_getDepth (  )  const [inline, protected]

Definition at line 47 of file Log.inl.


Friends And Related Function Documentation

std::ostream& operator<< ( Log data,
const std::string &  s 
) [friend]

Definition at line 18 of file Log.inl.

std::ostream& operator<< ( Log data,
const char *  s 
) [friend]

Definition at line 32 of file Log.inl.


Member Data Documentation

std::ostream& Log::warning

Definition at line 55 of file Log.h.

std::ostream& Log::error

Reimplemented in ParseData.

Definition at line 56 of file Log.h.

std::ostream& Log::info

Definition at line 57 of file Log.h.

int Log::_depth [protected]

Definition at line 64 of file Log.h.

bool Log::_debug [protected]

Definition at line 67 of file Log.h.

std::ostream Log::s_null [static, protected]

Definition at line 73 of file Log.h.


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

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6