I would like to start a process and monitor its LOG_DEBUG syslog messages.
I know that I can change the filter of an already running process with syslog -c process (and then monitor its messages with syslog -w -k Sender process), but that requires the process already to be running and furthermore fills up logfiles with messages that I only need temporarily.
Is my only option to change the running configuration with syslog -config, then later restore the configuration once I have read the messages I want? Surely there is a "better" way.
/etc/asl.confwith something like[= Sender exampleApp] [< Level Error] file exampleApp.log. In any case if you want to log something, you need to store it somewhere; whether it's a file or "only" printed on your screen, it's using more or less the same resources. – Asmus Dec 18 '14 at 17:24