Skip to content

Commit

Permalink
Add winston logger and make log level is configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
asimonok committed May 20, 2024
1 parent 408b883 commit 9e6698a
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 12 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Server Configuration
PORT=3000
API_KEY=Bearer 123456
LOG_LEVEL=error

# Twilio Configuration
TWILIO_ACCOUNT_SID=
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ fetch('http://localhost:3000/sendsms?number=1234567890,12223334455', {
})
```

## Logging
`LOG_LEVEL` config is set in `.env` file. All possible values are described in [Winston Logging Levels](https://github.com/winstonjs/winston?tab=readme-ov-file#logging-levels)

## Feedback

We're looking forward to hearing from you. You can use different ways to get in touch with us.
Expand Down
Loading

0 comments on commit 9e6698a

Please sign in to comment.