slogcxx.cpp File Reference

Logging class to write messages to console and file. More...

#include <ctime>
#include <sys/time.h>
#include <unistd.h>
#include <sstream>
#include <iostream>
#include "slogcxx.h"

Namespaces

namespace  std

Defines

#define TIME_T   float
 Allow the definition of time to be tweaked. Floats should be enough for now.

Functions

Slogoperator<< (Slog &s, Slog &(*manip)(Slog &))
 Allow the use of iomanipulators.
Slogendl (Slog &s)
 endl terminates a log... similar to std::endl
Slogincl (Slog &s)
 make the message LESS likely to show up
Slogdecl (Slog &s)
 make the message MORE likely to show up
Slogoperator<< (Slog &s, const int &r)
 Allow logging of ints.
Slogoperator<< (Slog &s, const size_t &r)
 32/64 bit safe unsigned numbers
Slogoperator<< (Slog &s, const char &c)
 Log insertion of a single character.
Slogoperator<< (Slog &s, const short &sh)
 Insert a short integer.
Slogoperator<< (Slog &s, const long &l)
 Insert a long integer.
Slogoperator<< (Slog &s, const float &f)
 Insert a 4 byte float.
Slogoperator<< (Slog &s, const double &d)
 Insert a 8 byte float.
Slogoperator<< (Slog &s, const char *str)
 Allow logging of C strings.
Slogoperator<< (Slog &s, const std::string &str)
 Log a string.
Slogoperator<< (Slog &s, const Where &w)
 Insert where object.


Detailed Description

Logging class to write messages to console and file.

Copyright (c) 2006 Kurt Schwehr Data Visualization Research Lab, Center for Coastal and Ocean Mapping University of New Hampshire. http://ccom.unh.edu

Bug:
FIX: make namespaces work
Todo:
get tv_usec into the time.

Optionally for XML mode, look for the closing tag of the previous log and clip it so the logs blend.

Documentation for each method is in the header.
Generated on Tue Aug 15 10:09:38 2006 by  doxygen 1.4.6