Logger Output
@naorpeled is already working on this.
Since Apr 19, 2024.
Assessment
This issue has not been assessed yet.
Description
Is it possible to cleanup or simplify the output from the logger when in development or running from serverless-offline? The JSON is basically unreadable in a command window.
Here is how I'm declaring lambda-api:
const api = require('lambda-api')( { base: '/api',
compression: true,
logger: { level: 'warn',
stack: process.env.STAGE_ENV === 'DEV' ? true : false } } );
I'm only using res.log.error in my caught error handlers:
} catch (error) {
req.log.error(Unable to gather settings.);
req.log.error(error);
- Dominant language
- JavaScript
- Stars
- 1.5k
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jeremydaly/lambda-api
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
jeremydaly/lambda-api#356 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
jeremydaly/lambda-api#270 ·
-
Is it possible to disable versioning?Possibly taken @naorpeled claimed this 93 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
jeremydaly/lambda-api#257 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
jeremydaly/lambda-api#251 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
jeremydaly/lambda-api#245 · 2 comments ·
All issues in jeremydaly/lambda-api
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
QuantEcon/lecture-python-programming#642 ·
Maintainers usually reply within 1 day
-
Missing repro Platform: Android
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
software-mansion/react-native-reanimated#10816 · 2 comments ·
Maintainers usually reply within 1 day
-
[Suggestion]: Document that useFormStatus works with a preventDefault-ed onSubmit + startTransitionOpentype: documentation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
area:docs bug triage:confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Cotal-AI/Cotal#2875 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
keithamus/css-minify-tests#304 ·
Maintainers usually reply within 1 day