package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev

# Functions

BootSetup creates a logger meant to be used when running from initramfs, where we want to consider the quiet kernel option.
Debug records something in the debug log.
Debugf records something in the debug log.
MockDebugLogger replaces the existing logger with a buffer and returns the log buffer and a restore function.
MockLogger replaces the existing logger with a buffer and returns the log buffer and a restore function.
New creates a log.Logger using the given io.Writer and flag, using the options from opts.
NoGuardDebugf records something in the debug log.
Notice notifies the user of something.
Noticef notifies the user of something.
Panicf notifies the user and then panics.
SetLogger sets the global logger to the given one.
SimpleSetup creates the default (console) logger.
StartupStageTimestamp produce snap startup timings message.
WithLoggerLock invokes f with the global logger lock, useful for tests involving goroutines with MockLogger.

# Constants

DefaultFlags are passed to the default console log.Logger.

# Variables

NullLogger is a logger that does nothing.

# Structs

No description provided by the author
No description provided by the author

# Interfaces

A Logger is a fairly minimal logging tool.