repo.or.cz
/
siwg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix files for make.
[siwg.git]
/
espy
/
src
/
Log.h
blob
6ebeab184923e0a5cf9603676625a5e54bcc8268
1
#include<iostream>
2
#include<string>
3
#include<unistd.h>
4
using namespace
std
;
5
6
class
Log
{
7
public
:
8
static void
error
(
string msg
) {
9
cout
<<
"error "
<<
msg
<<
endl
;
10
}
11
12
static void
log
(
string msg
) {
13
cout
<<
msg
<<
endl
;
14
}
15
16
static void
debug
(
string msg
) {
17
cout
<<
" DEBUG "
<<
getpid
() <<
" "
<<
msg
<<
endl
;
18
}
19
};
20