I can add a message to the macos system log via the command line on Sierra or later as follows:
logger -t "TestTag" "testing 1 2 3"
How do I find all messages that have been tagged with
I can use
log stream but I can't find how to filter for that tag. Any other command line solution would be fine too.
log stream --info --predicate 'process == "logger"', it looks like 'tag' is being completely ignored by the Unified Log system. But if you try
logger -is -t "TestTag" "testing 1 2 3"(using -is parameter) the tag is shown on terminal, but still not logged to database. Log database always logs it as [logger] message