#DataBridge Logger
- 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_EXTENSION (optional), default is '.log' : extension of logfile
- DATABRIDGE_LOGFOLDER (optional), default is './logs' : folder to store logs
- DATABRIDGE_LOG_ROTATION_TIME (optional), default is 1800 : time between log rotations [s]
- 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)
- DATABRIDGE_HUB_GRAPHQL (optional), URL to the graphql server for storing the analysed data
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)
This repo is available as a Docker 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 .
replace 9999
by whatever port you want to container to listen to
docker run -d -p 9999:80 databridge-logger