From 93f4549efa6f793c90ed34e65ba3766bc8771dc8 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Fri, 9 Oct 2020 14:36:28 +1100 Subject: [PATCH] Support trace in go runtime --- v2/internal/runtime/goruntime/log.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/v2/internal/runtime/goruntime/log.go b/v2/internal/runtime/goruntime/log.go index 85e722448..2a4d52b16 100644 --- a/v2/internal/runtime/goruntime/log.go +++ b/v2/internal/runtime/goruntime/log.go @@ -6,6 +6,7 @@ import ( // Log defines all Log related operations type Log interface { + Trace(message string) Debug(message string) Info(message string) Warning(message string) @@ -24,6 +25,11 @@ func newLog(bus *servicebus.ServiceBus) Log { } } +// Trace prints a Trace level message +func (r *log) Trace(message string) { + r.bus.Publish("log:trace", message) +} + // Debug prints a Debug level message func (r *log) Debug(message string) { r.bus.Publish("log:debug", message)