shiftcode / dynamo-easy

DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.
https://shiftcode.github.io/dynamo-easy/
MIT License
206 stars 27 forks source link

Documentation: How to increase the logging level #302

Closed jthomerson closed 2 years ago

jthomerson commented 4 years ago

I can't find any documentation on how to increase the logging level. That'd be very helpful to have documented so that when you run into an issue (like I did in #301), you can more easily debug it. I resulted to a hack like this after poking around in the code and old pull requests for a while. I'm sure there's a much easier way - probably with some env var.

import { updateDynamoEasyConfig } from '@shiftcoders/dynamo-easy';

updateDynamoEasyConfig({
   logReceiver: console.log,
});
jthomerson commented 4 years ago

I hope you don't mind me raising these issues. I'm just trying to make note of things that tripped me up as a fairly new user of this package. If I have time later, I'll come back and submit some PR's, but for right now I'm just trying to make sure I don't forget the roadblocks I hit during initial adoption.

michaelwittwer commented 2 years ago

@jthomerson sorry for the late reply. Love that you are submitting your learning path, so others can profit from that. Closing this in favour of #374 holding relevant topics to be updated in the docs, serving as a knowledge base for now or pinning missing topics and also describing the strategy of the technical solution of the documentation part, envision it to be closer to the source code of the project