mirror of
https://github.com/siderolabs/omni.git
synced 2025-08-07 18:17:00 +02:00
Fixes: https://github.com/siderolabs/omni/issues/858 Signed-off-by: Artem Chernyshev <artem.chernyshev@talos-systems.com>
17 lines
380 B
Go
17 lines
380 B
Go
// Copyright (c) 2025 Sidero Labs, Inc.
|
|
//
|
|
// Use of this software is governed by the Business Source License
|
|
// included in the LICENSE file.
|
|
|
|
// Package logging contains zap logging helpers.
|
|
package logging
|
|
|
|
import (
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
// Component returns the well-known "component" zap field.
|
|
func Component(name string) zap.Field {
|
|
return zap.String("component", name)
|
|
}
|