Documentation
¶
Overview ¶
Package tielog installs the process-wide slog logger used by tie-triplestore and tie-filehost. It fans every record out to two sinks at once: structured JSON appended to a log file (for machine parsing / retention) and a pretty, optionally colored line on stderr (for a human watching the console). stdout is never touched — it is reserved for data (e.g. dump TSV).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// File is the path to append JSON logs to. Empty disables file logging.
File string
// Level is the minimum level to emit ("debug", "info", "warn", "error").
// Empty defaults to info.
Level string
}
Config controls logger setup. The zero value is valid: no file, info level, pretty stderr.
Click to show internal directories.
Click to hide internal directories.