rsg-log-server

0.0.3 • Public • Published

Log-Server

A tiny server for receiving Serilog logs via HTTP post.

The logs are stored to MongoDB.

Install

npm install -g rsg-log-server

Run

rsg-log-server [--port <portno>] [--db <database-connection-string>] [--logsCollection <database-collection>] [--errorsCollection <database-collection>]

Configuration

Edit the file config.json where you can set the database, collections and port for the server.

{
    "db": "logs",
    "logsCollection": "logs",
	"errorsCollection": "errors",
    "port": 3000
}

The port, db, logsCollection and errorsCollection can be overridden by the command line.

Readme

Keywords

none

Package Sidebar

Install

npm i rsg-log-server

Weekly Downloads

8

Version

0.0.3

License

MIT

Last publish

Collaborators

  • rorydungan
  • adamsingle
  • ashleydavis