Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

log-server

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-server

Simple file based log server

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

Divhide Log server

Dependency Status

A simple log server that receive text and dumps it into a file. Every log file will have a daily representation, meaning that you can easily delete old logs.

Be aware that there's no maximum size on the logs being stored!

Also it provides you a web interface to access the logs directory.


# install log-server
npm i log-server -g

# log-server will store the current logs on the current folder by default
log-server -p 8000

# set log-server to store the logs on './logs/' folder
log-server -p 8000 -d ./logs/



The server expose the following url to submit the logs. You can replace the LOGNAME by some text that will identify the generated log file. The file will be created on: 'LOGSDIR/DATE/LOGNAME.log'.


POST http://localhost:8000/LOGNAME/log


Screenshot1 Screenshot2

Use cases

  • General remote log submission without the need for a complex log system
  • Submit Mobile application logs by username, device, ...

Example: Log some data

By running the following line you're dumping file.txt into the a log named 'LOGNAME.log'.


curl -X POST --data-binary @file.txt http://localhost:8000/LOGNAME/log --header "Content-Type:text/plain"


Authors

Oscar Brito

License

Copyright (c) 2014 Oscar Brito, contributors. Released under the license

Keywords

FAQs

Package last updated on 17 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc