aitools::invertedindex::Logging Class Reference

#include <Logging.hpp>

List of all members.

Static Public Member Functions

static clock_t clock ()
static void debug (const std::string &message)
static void debug (const std::string &key, unsigned value)
static void debug (const std::string &key, const std::string &value)
static void error (const std::string &message)
static void log (const std::string &message)
static time_t time ()
static std::string timestamp ()

Private Member Functions

 Logging ()
 ~Logging ()

Detailed Description

A helper class for time measures and debug output.

Author:
martin.trenkmann@uni-weimar.de

Created on Jun 22, 2008

Id
Logging.hpp,v 1.11 2010/05/11 23:41:08 trenkman Exp

Definition at line 22 of file Logging.hpp.


Constructor & Destructor Documentation

aitools::invertedindex::Logging::Logging (  )  [private]

The constructor.

aitools::invertedindex::Logging::~Logging (  )  [private]

The destructor.


Member Function Documentation

clock_t aitools::invertedindex::Logging::clock (  )  [static]

Returns the number of cpu clocks the program used.

Returns:
the number of cpu clocks.

Definition at line 5 of file Logging.cpp.

Referenced by debug().

Here is the caller graph for this function:

void aitools::invertedindex::Logging::debug ( const std::string &  key,
const std::string &  value 
) [static]

Definition at line 24 of file Logging.cpp.

References timestamp().

Here is the call graph for this function:

void aitools::invertedindex::Logging::debug ( const std::string &  key,
unsigned  value 
) [static]

Definition at line 17 of file Logging.cpp.

void aitools::invertedindex::Logging::debug ( const std::string &  message  )  [static]

Prints out a message to stdout if WEBIS_DEBUG is defined.

Parameters:
message the message to print out.

Definition at line 11 of file Logging.cpp.

References clock().

Here is the call graph for this function:

void aitools::invertedindex::Logging::error ( const std::string &  message  )  [static]

Prints out a message to stderr.

Parameters:
message the message to print out.

Definition at line 31 of file Logging.cpp.

References timestamp().

Referenced by aitools::invertedindex::build_ngram_index().

Here is the call graph for this function:

Here is the caller graph for this function:

void aitools::invertedindex::Logging::log ( const std::string &  message  )  [static]

Prints out a message to stdout.

Parameters:
message the message to print out.

Definition at line 37 of file Logging.cpp.

Referenced by aitools::invertedindex::StorageBuilder::put().

Here is the caller graph for this function:

time_t aitools::invertedindex::Logging::time (  )  [static]

Returns the seconds since January 1, 1970. This function can be used for runtime meassures. For cpu time messures use Logging::clock() instead.

Returns:
the number of seconds.

Definition at line 43 of file Logging.cpp.

std::string aitools::invertedindex::Logging::timestamp (  )  [static]

A method to get the present timestamp in string representation.

Returns:
a string as the timestamp.

Definition at line 49 of file Logging.cpp.

Referenced by debug(), and error().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed May 30 15:07:38 2012 by  doxygen 1.6.3