New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

remotelogger

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remotelogger

This server is able to receive logs from javascript remote application

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created
Source

Remotelogger

Remote Logger is a node module able to handle request with strings and to put in a log file and the console. The JavaScript sample client code is based on Aria-Templates scripts and a standard JavaScript one.

  • Run the server
  • Load in your code the javascript
  • Call the logger method

How to use it

Installation

npm install -g remotelogger

Run it

remotelogger

Message Structure

Here is the URL to do a remote log :

curl http://localhost:8666/log/?classname=com.mycompany.test&log=This is my log message message&sev=DEBUG&logdate=1426844546265&depth=4&senddate=1426844546265
{
	cl : "ClassName or identifier of the javascript that did the log",
	log : "Log Message",
	logdate : "Date of the log (as we are queuing the message to ensure the order of reception)",
	depth : "Depth of the call stack not used ",
	senddate:"Date when the log was send from the client (Must be UTC time so we can calculate the request time)",
	sev : "The severity of the log [DEBUG,INFO,ERROR,WARN]"
}

Web

open http://localhost:8666/www/ you will land on an interface allowing to see the log in web mode (search tool from the browser) and also see the occurency of call of a class (identifier). If you add a "Entering" keyword in your log in each of first line of your function, it will be able to draw a sequence diagram.

Options

  • Filtering on the logs, this allow to display on the file and the console only what is matching the filter
remotelogger --filter mainpage

Only logs containing mainpage will be displayed

  • Log file, by default the log is done on the console, if you want to store in a file.
remotelogger --logfile myfile.log

The web part of the remote logger can use firebase for live update.

remotelogger --firebase https://YOURURL.firebaseio.com

Known Issues

On OSX we have to link node installation as it is in linux system.

Web application is slow on huge amount of data TODO : improve it.

sudo ln -s /usr/local/bin/node /usr/bin/node

Keywords

FAQs

Package last updated on 10 Jul 2015

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