Reading logs¶
Log messages are formatted as:
%(asctime)s - %(process)d - %(name)s - %(levelname)s - %(message)s
You can find the meaning of the %(…)s attributes in the Python documentation.
In particular, you can use the name attribute to filter messages by topic. For example:
grep NAME /var/log/kingfisher-summarize.log | less
where NAME is one of:
- ocdskingfisher.summarize.cli
An
INFO-level message whenever a CLI command is run, by a user or by cron.- ocdskingfisher.summarize.add
An
INFO-level message from the add command.- ocdskingfisher.summarize.remove
An
INFO-level message from the remove command.- ocdskingfisher.summarize.field-counts
An
INFO-level message from the field-counts routine.- ocdskingfisher.summarize.summary-tables
An
INFO-level message from the summary-tables routine.