summaryrefslogtreecommitdiff
path: root/original.go
blob: b76dcf687c8a3acc398976bd79754a4354bef7c2 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package log

/*
	import (
		"log"
	}

	and 

	import (
		"go.wit.com/log"
	}

	Should work exactly the same.

	These are golang log functions that are not changed
	at all. The arguments are all just passed straight through
	so this package appears to work exactly like the original ones
*/

// TODO: fill in the other functions from "log". Is there a way to automagically do that?

import 	(
	origlog "log"
)

func Println(a ...any) {
	if ! PRINTLN.B { return }
	origlog.Println(a...)
}

func Printf(s string, a ...any) {
	if ! PRINTLN.B { return }
	origlog.Printf(s, a...)
}

func Fatalf(s string, a ...any) {
	origlog.Fatalf(s, a...)
}

func Fatal(s string, a ...any) {
	origlog.Fatalf(s, a...)
}