1.1.3 • Published 6 years ago

databridge-logger v1.1.3

Weekly downloads
6
License
UNLICENCED
Repository
github
Last release
6 years ago

#DataBridge Logger

Environment variables

  • DATABRIDGE_KEY (optional): key for HTTPS
  • DATABRIDGE_CERTIFICATE (optional): certificate for https
  • NODE_PORT (optional), default is 3000 : port on which server operates
  • DATABRIDGE_LOGFILE (optional), default is './all.log' : name and path of logfile
  • DATABRIDGE_LOGGER_TCP_HOST (optional), if set enable TCP backend to this host
  • DATABRIDGE_LOGGER_TCP_PORT (optional), if set enable TCP backend to this port (the two need to be defined)

Protocol

This logging server accepts an array of JSON messages through HTTP/s Protocol.

The domain of valid JSON messages are defined in ./src/logSchema.json (A JSON-Schema descriptor)

Container Docker

This repo is available as a Docker Container

Build this container

(In the repo folder) Warning: The docker container only listen HTTP, you will need to put an HTTPS accelerator in front of this container

docker build -t databridge-logger .

Run this container

replace 9999 by whatever port you want to container to listen to

docker run -d -p 9999:80 databridge-logger