OpenFn / lightning

OpenFn/Lightning ⚡️ is the newest version of the OpenFn DPG and provides a web UI to visually manage complex workflow automation projects.
https://openfn.github.io/lightning/
GNU Lesser General Public License v3.0
115 stars 31 forks source link

Control log levels in run logs #2206

Open christad92 opened 1 week ago

christad92 commented 1 week ago

As a user, I want to control the level of logs printed in my run logs through the workflow settings panel. There are 5 levels of logs (Debug, Info, Warning, Error, and Critical). The default behavior here will be to print all levels of logs but when I choose a level (say Warning), all the levels preceding it will be printed (Debug, Warning, Error). The image below is a reference for how log levels are printed.

image

When printing logs, we need to print the log level that's configured for the workflow.

Design: https://www.figma.com/design/4hGWdO4sajnjcOwE81j8BK/App-(new)?node-id=4538-643&t=gKE781fliu7QFjgA-0