logread

command
v0.6.20 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 8 Imported by: ? 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

Command logread emits log entries at several levels and reads them back from the unified logging store.

It writes one message per os_log level under a subsystem, then opens an OSLogStore scoped to the current process and enumerates the entries recorded in the recent past, printing the ones that match the subsystem.

Reading the current process's own entries needs no entitlement; the system-wide store (OSLogStoreSystem) does.

The composed message often reads "<compose failure [UUID]>": os_log stores only the format string's address, and the logging system cannot recover it from a binary it has no UUID record for. The entry metadata — date, level, subsystem, category, process — is still accurate.

Usage:

go run ./examples/oslog/logread [-subsystem name] [-since duration]

Jump to

Keyboard shortcuts

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