Discover Packages
github.com/giantswarm/oka
pkg
logger
package
Version:
v0.0.0-...-41a272b
Opens a new window with list of versions in this module.
Published: Jan 5, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package logger provides functionality for setting up and managing logging.
GetLevel returns the slog.Level for a given log level name.
GetLevels returns a slice of available log level names.
func Setup(logLevel, logFile string ) (closer func(), err error )
Setup initializes the global logger with the specified log level and output
file. If no log file is provided, it defaults to stderr. It returns a closer
function to be called on application shutdown.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.