Optionaloptions: Which messages to get
OptionalminimumLevel?: "garbage" | "debug" | "info" | "warning" | "error" | "javascript"Only get messages at this level or above, e.g. "warning" for warnings and errors (and "javascript" messages, which count as the highest level). Defaults to every level
Optionalsearch?: stringOnly get messages that contain this text, ignoring case
Optionalsince?: numberOnly get messages whose sequence is higher than this
The matching messages, oldest first
When the message was logged
The message's level, where "javascript" is for console.log() and friends
The message's text
A number that's higher for each newer message. Pass the last one you've seen as since to get only the messages logged after it
Get the messages currently in the Hammerspoon Console, oldest first. This is the same history the Console window shows, so it's limited by the "Console history length" setting (which applies to each level separately), and
hs.clearConsole()empties it.