[go: up one dir, main page]

File: slogTest.cpp

package info (click to toggle)
libcommoncpp2 1.5.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,732 kB
  • ctags: 3,544
  • sloc: cpp: 28,089; sh: 9,512; ansic: 1,118; makefile: 319; xml: 5
file content (22 lines) | stat: -rw-r--r-- 435 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#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.clogEnable(true);
   slog << "Are you still there?" << endl;
   return 0;
}