Can we make p4 program to log only specific variables

Hi,
I want to log field values from some headers using log_msg.
To enable it to work I used log console when starting the switch.
This make a lot of not needed messages to be logged, increasing the size of logged file rapidly.
It there a way to just log the fields that I have want to record using log_msg.?

Thanks

This might not be the best answer to your question but if too many messages are generated and the file is too big, I used to open the log files with glogg (to prevent using editors that load the whole field in memory) and search the fields with it. That might be a partial-solution for your issue.

Cheers,