launch icon indicating copy to clipboard operation
launch copied to clipboard

Add logging actions for severity levels other than 'INFO'

Open AntoSave opened this issue 1 year ago • 2 comments

Currently there is no action analogous to LogInfo for other severity levels such as 'WARN', 'DEBUG' and 'ERROR'. I was wondering whether this is a design choice or a feature that is yet to be implemented.

AntoSave avatar Jan 28 '25 11:01 AntoSave

@AntoSave thanks for the ticket. The feature you propose is worthwhile to implement and we would be happy to review a PR for it if you or anyone else decides to take it up. Please let me know if this is something you're willing to work on.

One consideration to be mindful of is whether having an Error log level makes sense for launch.

Yadunund avatar Feb 06 '25 21:02 Yadunund

Maybe a new action could be added to log a message with a given logging level, e.g., level='info', level='warning', etc. Then LogInfo could just be a simple wrapper around that (with level='info').

christophebedard avatar Feb 06 '25 21:02 christophebedard