https://github.com/real-serious-games/logserver
A simple server that accepts Serilog logs via HTTP post and adds them to your MongoDB database.
https://github.com/real-serious-games/logserver
Last synced: 4 months ago
JSON representation
A simple server that accepts Serilog logs via HTTP post and adds them to your MongoDB database.
- Host: GitHub
- URL: https://github.com/real-serious-games/logserver
- Owner: Real-Serious-Games
- License: mit
- Created: 2015-03-11T05:32:37.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T01:48:32.000Z (over 6 years ago)
- Last Synced: 2025-06-19T22:02:45.741Z (4 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 3
- Watchers: 10
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 ] [--db ] [--logsCollection ] [--errorsCollection ]
## 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.