logdemo

command
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Command logdemo exercises every capability of the x/oslog and x/signpost packages so the output can be inspected in Console.app or `log stream`.

All records use the subsystem "com.tmc.appledemo". To watch them:

log stream --predicate 'subsystem == "com.tmc.appledemo"' --level debug --signpost

or in Console.app, search: subsystem:com.tmc.appledemo

Signpost intervals appear in Instruments' Points of Interest track when you record this process with the os_signpost or Points of Interest instrument.

Run once, or with -loop to emit continuously (^C to stop):

go run ./examples/os/logdemo
go run ./examples/os/logdemo -loop

Jump to

Keyboard shortcuts

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