summaryrefslogtreecommitdiff
path: root/original.go
diff options
context:
space:
mode:
Diffstat (limited to 'original.go')
-rw-r--r--original.go39
1 files changed, 39 insertions, 0 deletions
diff --git a/original.go b/original.go
new file mode 100644
index 0000000..e5a83a5
--- /dev/null
+++ b/original.go
@@ -0,0 +1,39 @@
+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
+*/
+
+import (
+ origlog "log"
+)
+
+func Println(a ...any) {
+ origlog.Println(a...)
+}
+
+func Printf(s string, a ...any) {
+ origlog.Printf(s, a...)
+}
+
+func Fatalf(s string, a ...any) {
+ origlog.Fatalf(s, a...)
+}
+
+func Fatal(s string, a ...any) {
+ origlog.Fatalf(s, a...)
+}