FBB::SyslogStream

FBB::SyslogStream

libbobcat1-dev_2.02.03-x.tar.gz

2005-2009


FBB::SyslogStream(3bobcat)

FBB::SyslogStream(3bobcat)

libbobcat1-dev_2.02.03-x.tar.gz Output Stream for Syslog

2005-2009

NAME

FBB::SyslogStream - An output stream inserting syslog messages

SYNOPSIS

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

DESCRIPTION

FBB::SyslogStream objects may be used as a std::ostream to write syslog messages using stream facilities.

NAMESPACE

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

INHERITS FROM

std::ostream

ENUMERATIONS

The following enumerations are defined in the namespace FBB:

Priority:

The values of this enumeration match the corresponding priority LOG_xxx values used with syslog(3):

Facility:

The values of this enumeration match the corresponding facility LOG_xxx values used with syslog(3):

CONSTRUCTOR

The copy constructor is not available.

MEMBER FUNCTIONS

All members of std::streamstream are available, as FBB::SyslogStream inherits from this class.

MANIPULATORS

The following set of manipulators are all defined as (static) members of the class FBB::SyslogStream. They may be inserted into an FBB::SyslogStream. Except for the last manipulator (strerrno), they have the following characteristics in common:

Here are the available manipulators:

EXAMPLE


#include <bobcat/syslogstream>

using namespace std;
using namespace FBB;

int main(int argc, char **argv)
{
    SyslogStream sls(argv[0]);

    sls << SyslogStream::debug << "Hello world" << endl;
    sls << SyslogStream::strerrno << endl;
    
    return 0;
}
    

FILES

bobcat/syslogstream - defines the class interface

SEE ALSO

bobcat(7), openlog(3), syslog(3), syslogstream(3bobcat)

BUGS

The constructor's option parameter is an int. Because of this, int values rather than enumeration values are passed to the constructor. It is the responsibility of the programmer to pass defined option values only.

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).