★ wanayoo — archive 1999 https://github.com/HDE/python-lambda-local/issues/68Nouvelle recherche | Portail wanayoo
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 · May be fixed by #69
Open

Add a verbose option #68

joelachance opened this issue Apr 30, 2020 · 0 comments · May be fixed by #69

Comments

@joelachance
Copy link

@joelachance 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
@joelachance joelachance linked a pull request that will close this issue Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.