Allow to define a logging target

This commit is contained in:
Ingo Oppermann
2023-01-03 11:28:57 +01:00
parent 17c9f6ef13
commit 37e00407cc
12 changed files with 311 additions and 137 deletions

View File

@@ -12,7 +12,7 @@ import (
func (r *queryResolver) Log(ctx context.Context) ([]string, error) {
if r.LogBuffer == nil {
r.LogBuffer = log.NewBufferWriter(log.Lsilent, 1)
r.LogBuffer = log.NewBufferWriter(1)
}
events := r.LogBuffer.Events()