File: Diagnostics.cc

package info (click to toggle)
smilutils 0.3.0-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,008 kB
  • ctags: 2,647
  • sloc: cpp: 13,066; sh: 8,861; ansic: 8,309; makefile: 294
file content (25 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <config.h>

#include <string>
using std::string;

#include "Diagnostics.h"

int Diagnostics::level = 0;
string Diagnostics::app = "Unknown";

void Diagnostics::Log( DiagnosticsId &id, string message, int _level )
{
	if ( _level <= level )
	{
		cerr << _level 
			 << "::" 
			 << app
			 << "::"
			 << id.LogId( )
			 << "::"
			 << message 
			 << endl;
	}
}