GNU CommonC++
slogTest.cpp
#include <cc++/slog.h>
#include <iostream>
#include <cstdio>
#ifdef CCXX_NAMESPACES
using namespace std;
using namespace ost;
#endif
int main(int argc, char* argv[])
{
slog("slogTest", Slog::classUser, Slog::levelInfo);
slog << "Howdy daemon and clog." << endl;
slog.clogEnable(false);
slog << "This is only for the daemon." << endl;
slog << "Are you still there?" << endl;
return 0;
}
slog.h
System logging facilities abstraction.
ost::slog
__EXPORT Slog slog
ost::Slog::clogEnable
void clogEnable(bool f=true)
Enables or disables the echoing of the messages to clog in addition to the syslog daemon.
Definition: slog.h:266
ost
Definition: address.h:64