Discover Packages
github.com/enowdev/antares
internal
logx
package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Nov 14, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package logx provides structured logging with an in-memory ring buffer so the
dashboard can tail recent lines without touching the filesystem.
MarshalEntries is a helper for API responses.
Setup installs the global logger. When path is non-empty, records are also
appended to that file as JSON lines.
func Subscribe() (<-chan Entry , func())
Subscribe streams new entries until the returned cancel func runs.
type Entry struct {
Time time .Time `json:"time"`
Level string `json:"level"`
Message string `json:"message"`
Source string `json:"source,omitempty"`
Attrs map[string ]any `json:"attrs,omitempty"`
}
Entry is one captured log record.
Tail returns up to n most recent entries, oldest first, optionally filtered.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.