FBB::LogBuffer

FBB::LogBuffer

libbobcat1-dev_2.02.03-x.tar.gz

2005-2009


FBB::LogBuffer(3bobcat)

FBB::LogBuffer(3bobcat)

libbobcat1-dev_2.02.03-x.tar.gz log messages stream buffer

2005-2009

NAME

FBB::LogBuffer - std::streambuf handling log messages

SYNOPSIS

#include <bobcat/logbuffer>
Linking option: -lbobcat

DESCRIPTION

FBB::LogBuffer is a class derived from std::streambuf handling log messages. The stream to log to, timestamps and log-levels can be configured both at construction time and beyond. The FBB::LogBuffer may be used to initialize a std::ostream.

NAMESPACE

FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.

INHERITS FROM

std::streambuf

ENUMERATION

The enumeration TimeStamps is defined in the namespace FBB to be used when initializing FBB::LogBuffer objects. It has the following values:

CONSTRUCTORS

The copy constructor is not available.

MEMBER FUNCTIONS

All members of std::streambuf are available, as FBB::LogBuffer inherits from this class.

EXAMPLE

#include <iostream>
#include <iomanip>

#include <bobcat/log>

using namespace std;
using namespace FBB;

int main()
{
    LogBuffer buffer(cout);
    ostream log(&buffer);

    log << "This message is written to cout" << nl <<
           setw(16) << ' ' << "occupying multiple lines\n";

    return 0;
}

FILES

bobcat/logbuffer - defines the class interface

SEE ALSO

bobcat(7), log(3bobcat)

BUGS

None Reported.

DISTRIBUTION FILES

BOBCAT

Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.

COPYRIGHT

This is free software, distributed under the terms of the GNU General Public License (GPL).

AUTHOR

Frank B. Brokken (f.b.brokken@rug.nl).