Skip to content
This repository has been archived by the owner on Apr 24, 2019. It is now read-only.

Optional logging of proxy request added #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bartolkaruza
Copy link

Optional 'log' option added, that outputs the details of the request that is about to be proxied.

```
app.use(proxy({
host: 'http://alicdn.com', // proxy alicdn.com...
log: true // turn logging on
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass a logger will be good for me.

logger: console

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants