Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a verbose option #68

Open
joelachance opened this issue Apr 30, 2020 · 0 comments
Open

Add a verbose option #68

joelachance opened this issue Apr 30, 2020 · 0 comments

Comments

@joelachance
Copy link

joelachance commented Apr 30, 2020

The output is helpful and excellent, but it would be nice to have output that is less verbose. I'm finding I don't need the datetime and requestId, for example.

I propose a -v & --verbose flag that when passed, will continue operating as normal, however, when not passed will have truncated logging. I'd be interested in a --colors option as well to improve readability.

For example, logs when --verbose is passed:

[root - INFO - 2020-04-30 08:19:31,996] Event: {'name': 'python-lambda-local'}
[root - INFO - 2020-04-30 08:19:31,996] START RequestId: 1f1a32e3-fa30-48f6-a490-37b4ca0643fd Version: $LATEST
[root - INFO - 2020-04-30 08:19:32,005] END RequestId: 1f1a32e3-fa30-48f6-a490-37b4ca0643fd
[root - INFO - 2020-04-30 08:19:32,005] REPORT RequestId: 1f1a32e3-fa30-48f6-a490-37b4ca0643fd  Duration: 0.84 ms
[root - INFO - 2020-04-30 08:19:32,005] RESULT:
hello world

When --verbose is not passed:

Event:      {'name': 'python-lambda-local'}
Duration:   0.84 ms
Result:     hello world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant