Documentation
¶
Overview ¶
Package logging provides shared logger configuration for snapshot binaries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogger ¶
ConfigureLogger creates a logr.Logger from the SNAPSHOT_LOG_LEVEL environment variable. output controls where log lines are written ("stdout" or "stderr"). Supported levels: trace, debug, info, warn, error. Defaults to info.
func LastRestoreError ¶ added in v0.2.0
LastRestoreError returns the last error CRIU logged in restore.log, or "" when there is none. CRIU's RPC response carries the first error it logged instead, which is often an earlier, non-fatal one.
func LogProcessDiagnostics ¶
LogProcessDiagnostics logs process state and CRIU restore log for debugging a failed restore.
func LogRestoreErrors ¶
LogRestoreErrors finds the CRIU restore.log and logs key lines from it.
Types ¶
This section is empty.