canonical / craft-cli

https://canonical-craft-cli.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
9 stars 15 forks source link

logging handler is not using any formater #135

Open rgildein opened 1 year ago

rgildein commented 1 year ago

Currently _Handler.emit function is not using self.formatter to format message, so instead of msg = self.format(record) only msg = record.getMessage() is used.

I think that by default _Handler could use formatter with simple %(message)s, but it could be useful to add custom format here.