Hello,
I need to monitor the device for an activity that is not supported by ES framework. I can reliably monitor it using correct filters with log stream
, for example
sudo log stream --info --style compact --predicate 'category = "X"'
But I need to provide that functionality through my application. Because of that, I made an instance of a log store, hoping I will be able to retrieve the necessary informations that way. The problem is that the messages are sometimes appearing and sometimes not. The log level I am interested in is info
, which according to the docs
The system stores info-level messages in memory buffers and, without a configuration change, purges the oldest messages as those buffers fill up.
If I understand that correctly, the info messages are being written to the buffer and not the store, only sometimes reaching it. But also that should be modifiable with a configuration change? How could I make such change to always save info
logs to the store and retrieve them?