Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsJson = false
View Source
var RecordedLogForTesting = new(bytes.Buffer)
View Source
var RequestIdFieldName = "request-id"
Functions ¶
func SetLogLevel ¶ added in v0.1.2
func SetupForTesting ¶
func SetupForTesting()
Setup function for testing that records log entries instead of writing them to console
func SetupJsonLogging ¶
func SetupJsonLogging(serviceId string)
SetupJsonLogging configures go-autumn-logging to log via rs/zerolog using a subset of ECS see https://www.elastic.co/guide/en/ecs/1.4
func SetupPlaintextLogging ¶
func SetupPlaintextLogging()
SetupPlaintextLogging configures go-autumn-logging to log via rs/zerolog using a simple plaintext logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.