Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ComponentKey names the part of a program that emitted a log line. ComponentKey = "cmp" // ServiceNameKey distinguishes programs that write to the shared log file. ServiceNameKey = "service_name" // ServiceNameCLI identifies the hive CLI. ServiceNameCLI = "hive-cli" // ServiceNameDesktop identifies Hive Desktop. ServiceNameDesktop = "hive-desktop" )
Variables ¶
This section is empty.
Functions ¶
func Component ¶ added in v0.60.0
Component returns logger with the component label set to name. Give it a logger that has no component label yet: zerolog appends fields, so a second call adds a second cmp key instead of replacing the first.
Types ¶
Click to show internal directories.
Click to hide internal directories.