richie icon indicating copy to clipboard operation
richie copied to clipboard

Consider adding a new console logger with INFO level

Open jmaupetit opened this issue 7 years ago • 1 comments

Purpose

As discussed with @mbenadda [1] some relevant logs may get lost if we only use sentry for logs with a level >= WARNING.

Proposal

Add a new logger using the console handler with the INFO level so that we can store and use them at a system level depending on the infrastructure (e.g. OpenShift + ELK).

Reference(s)

[1] https://github.com/openfun/richie/pull/112#discussion_r185534415

jmaupetit avatar May 02 '18 15:05 jmaupetit

As discussed today from Slack with @jmaupetit and @mbenadda , it seems log ouptut is totally muted in local development, particularly from CLI commands like bootstrap_elasticsearch.

This would be nice to have logger config for local development to have logger correctly enabled so we can use logger.info() and even logger.debug() inside commands.

sveetch avatar Feb 28 '19 13:02 sveetch