gulp-webserver icon indicating copy to clipboard operation
gulp-webserver copied to clipboard

How to get gulp-webserver to log requests in the console?

Open viztastic opened this issue 10 years ago • 1 comments

Is there a way to have a logger similar to morgan (https://www.npmjs.com/package/morgan) to log requests made to the webserver?

viztastic avatar Dec 04 '15 11:12 viztastic

Just use the middleware-option and put morgan in there:

... middleware: morgan("combined"), ...

dzerrenner avatar Feb 25 '16 15:02 dzerrenner