logdemo

command
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 6 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 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