626e1bb5ac
Store file handle per module, swap lifecycle logger before closing file, return teardown errors, remove duplicate Module() func. Co-authored-by: Cursor <cursoragent@cursor.com>
7 lines
329 B
Go
7 lines
329 B
Go
// Package applog configures slog for [gitea.auvem.com/go-toolkit/app.Lifecycle]
|
|
// with optional JSON file output and tint console formatting.
|
|
//
|
|
// Teardown closes the log file and re-points the lifecycle logger to console-only
|
|
// (or discard if console is disabled) so post-teardown lifecycle logs remain safe.
|
|
package applog
|