logging

package
v0.0.60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package logging provides various utility functions regarding optional service log collection for the sf-operator:

* create fluent bit sidecar

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFluentBitSideCarContainer

func CreateFluentBitSideCarContainer(serviceName string, extraLabels []FluentBitLabel, volumeMounts []apiv1.VolumeMount, openshiftUser bool) (apiv1.Container, apiv1.Volume)

func CreateForwarderEnvVars

func CreateForwarderEnvVars(name string, extraLabels []FluentBitLabel) []apiv1.EnvVar

func LogD added in v0.0.58

func LogD(msg string)

LogD logs a message with the DEBUG log Level.

func LogDeprecation added in v0.0.58

func LogDeprecation(msg string)

LogDeprecation logs a deprecation warning message at the default info level.

func LogE added in v0.0.58

func LogE(err error, msg string)

LogE logs a message with the Error log Level

func LogI added in v0.0.58

func LogI(msg string)

LogI logs a message with the INFO log Level

func LogTrace added in v0.0.58

func LogTrace(msg string)

LogTrace logs a message at the DEBUG log level with high verbosity (5). Use for detailed debugging information that is not needed in standard debug logs.

func LogW added in v0.0.58

func LogW(msg string)

LogW logs a warning message at the default info level.

func SetupLogForwarding

func SetupLogForwarding(serviceName string, forwarderSpec *v1.FluentBitForwarderSpec, extraLabels []FluentBitLabel, annotations map[string]string) []apiv1.EnvVar

Types

type FluentBitLabel

type FluentBitLabel struct {
	Key   string
	Value string
}

func CreateBaseLoggingExtraKeys added in v0.0.44

func CreateBaseLoggingExtraKeys(name string, component string, container string, namespace string) []FluentBitLabel

type TemplateInputParams added in v0.0.44

type TemplateInputParams struct {
	InUse bool
	Host  string
	Port  string
}

type TemplateLoggingParams added in v0.0.44

type TemplateLoggingParams struct {
	Tag                string
	LogLevel           string
	ForwardInputConfig TemplateInputParams
}

func CreateForwarderConfigTemplateParams added in v0.0.44

func CreateForwarderConfigTemplateParams(tag string, forwarderSpec *v1.FluentBitForwarderSpec) TemplateLoggingParams

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL