User Manual, Developers Guide and API Documentation

wns::logger::ConsoleFormat Class Reference

#include <logger/ConsoleFormat.hpp>

Inheritance diagram for wns::logger::ConsoleFormat:

Inheritance graph
[legend]
Collaboration diagram for wns::logger::ConsoleFormat:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ConsoleFormat (const pyconfig::View &pyco)
virtual std::string formatMessage (const RawMessage &m)
virtual std::string formatRegistration (const std::string &, const std::string &)

Private Member Functions

std::string highlightModuleName (const std::string &module)

Private Attributes

bool blackNWhite
unsigned long int currentLocationLength
 The length of the string of the "longest" location.
unsigned long int debugTimePrecision
 Number of digits after decimal point.
unsigned long int debugTimeWidth
 The time is displayed in a field of this width.
unsigned long int maxLocationLength
 The maximum length of the string of the location.
std::map< std::string,
std::string > 
module2color
 module::Modulename 2 color mapping


Detailed Description

Definition at line 35 of file ConsoleFormat.hpp.


Constructor & Destructor Documentation

ConsoleFormat::ConsoleFormat ( const pyconfig::View pyco  ) 

Definition at line 40 of file ConsoleFormat.cpp.


Member Function Documentation

std::string ConsoleFormat::formatMessage ( const RawMessage m  )  [virtual]

Implements wns::logger::FormatStrategy.

Definition at line 82 of file ConsoleFormat.cpp.

virtual std::string wns::logger::ConsoleFormat::formatRegistration ( const std::string &  ,
const std::string &   
) [inline, virtual]

Implements wns::logger::FormatStrategy.

Definition at line 43 of file ConsoleFormat.hpp.

std::string ConsoleFormat::highlightModuleName ( const std::string &  module  )  [private]

Definition at line 69 of file ConsoleFormat.cpp.


Member Data Documentation

Definition at line 48 of file ConsoleFormat.hpp.

Definition at line 73 of file ConsoleFormat.hpp.

Definition at line 63 of file ConsoleFormat.hpp.

Definition at line 58 of file ConsoleFormat.hpp.

Definition at line 68 of file ConsoleFormat.hpp.

std::map<std::string, std::string> wns::logger::ConsoleFormat::module2color [private]

Definition at line 53 of file ConsoleFormat.hpp.


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

Generated on Sun May 27 03:33:00 2012 for openWNS by  doxygen 1.5.5