Sign inSign up

matiasgarciaisaia/request-logger

By matiasgarciaisaia

Updated over 4 years ago

Logs incoming HTTP requests to stdout

Image
0

521

matiasgarciaisaia/request-logger repository overview

Request Logger

Logs incoming HTTP requests to stdout

Small NodeJS server that logs every incoming HTTP request to stdout.

Usage

Run it with Docker:

docker run --rm -Pti matiasgarciaisaia/request-logger

You need -P to expose the port on which it's listening.

To test a local version, build & run in docker:

docker build -t request-logger:local . && docker run --rm -Pti request-logger:local

Then use docker ps to check which port it's listening on.

You can also run it locally (if you have NodeJS) by running:

sudo node index.js

You need sudo because I'm lazy and made it run on port 80 by default. I meant to run it on Docker, so I don't care - please send a pull request if it's an issue for you :)

Tag summary

Content type

Image

Digest

Size

35.9 MB

Last updated

over 4 years ago

docker pull matiasgarciaisaia/request-logger