jsonlog

package
v0.16.355 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package jsonlog writes the JSON log lines the runtime, the machine agent and the hub share: one line per event, info to stdout, warn and error to stderr. It imports nothing of the module, so any package can log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(level, msg string, fields ...F)

Log writes one JSON line: level, msg, the extra fields, time. Info goes to stdout, warn and error to stderr.

Types

type F

type F struct {
	K string
	V any
}

F is one extra field of a log line, kept in the order given.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL