node-lambda-log icon indicating copy to clipboard operation
node-lambda-log copied to clipboard

Disable JSON logging for development

Open ulich opened this issue 3 years ago • 2 comments

I completely understand that you should log in JSON format when deployed, but locally during development, even with dev: true the experience isn't that great because then each log entry spans multiple lines and you quickly loose the overview when trying to read many log statements

Have you maybe considered adding a new output format that is just logging out the plain message?

ulich avatar Oct 20 '21 14:10 ulich

@ulich I'm actually adding a new configuration option to v4.0.0 that will allow you to customize the output of the log prior to logging it to the terminal when dev mode is enabled.

I'm hoping to have a few different examples of formatting the logs in the documentation on release but I also hope this will spark some plugins to be created by the community to provide many different options.

KyleRoss avatar Oct 20 '21 17:10 KyleRoss

Cool. I'm looking forward to this! Thank you

ulich avatar Oct 20 '21 21:10 ulich