andrewjensen / light-blocks

Control Philips Hue lights with Blocks!
4 stars 1 forks source link

Add winston logger with levels #10

Closed andrewjensen closed 8 months ago

andrewjensen commented 8 months ago

This adds the winston library for more robust logging.

We can set the log level with an env var:

export LOG_LEVEL="debug"

The PR also adds a few new info-level logs for helpful debugging in production settings.

Resolves #8.