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

ramolog

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ramolog

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Ramolog

MongoDB backed Rack's CommonLogger replacement.

Installation

Add this line to your application's Gemfile:

gem 'ramolog'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ramolog

Usage

app.rb

require 'sinatra'

configure do
  use Ramolog::Logger, ENV['MONGOLAB_URI'], 'log'
end

Log format example

{
    "_id": {
        "$oid": "567b9cc2295d3b000300001d"
    },
    "format": 1,
    "date": "2015-12-24T07:20:34+00:00",
    "referrer": "-",
    "request": {
        "method": "GET",
        "host": "www.toyoshima-house.net",
        "url": "http://www.toyoshima-house.net/index.html",
        "protocol": "HTTP/1.1",
        "acceptLanguage": "zh-cn,zh-tw"
    },
    "response": {
        "status": 200,
        "contentLength": 105,
        "responseTime": 0.408114
    },
    "remote": {
        "addr": "*.*.*.*",
        "user": "-",
        "userAgent": "Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)"
    }
}

For other languages

  • Express / Node.js: momolog

FAQs

Package last updated on 24 Dec 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