summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/server.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/server.go b/internal/server.go
index f2b3485..1ae594b 100644
--- a/internal/server.go
+++ b/internal/server.go
@@ -5,6 +5,8 @@ import (
"net"
"strings"
"sync"
+
+ "tildegit.org/tjp/sliderule/logging"
)
type logger interface {
@@ -40,6 +42,12 @@ func NewServer(
networkAddr := listener.Addr()
ctx, cancel := context.WithCancel(ctx)
+ debuglog, infolog, warnlog, errlog := logging.DefaultLoggers()
+ ctx = context.WithValue(ctx, "debuglog", debuglog)
+ ctx = context.WithValue(ctx, "infolog", infolog)
+ ctx = context.WithValue(ctx, "warnlog", warnlog)
+ ctx = context.WithValue(ctx, "errlog", errlog)
+
return Server{
Ctx: ctx,
Cancel: cancel,