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

trifle-logger

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trifle-logger

  • 0.4.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Trifle::Logger

Gem Version Ruby Gitpod ready-to-code

Simple logger backed by Redis, Postgres, MongoDB, or whatever.

Trifle::Logger is a way too simple timeline logger that helps you track custom outputs. Ideal for any code from blackbox category (aka background-job-that-talks-to-API-and-works-every-time-when-you-run-it-manually-but-never-when-in-production type of jobs)

Documentation

You can find guides and documentation at https://trifle.io/docs/logger

Installation

Add this line to your application's Gemfile:

gem 'trifle-logger'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install trifle-logger

Usage

It saves you from reading through your standard logger

Trifle::Logger.trace('This is important output')
now = Trifle::Logger.trace('And it\'s important to know it happened at') do
  Time.now
end

To being able to say what happened on 25th January 2021.

[
  {at: 2021-01-25 00:00:00 +0100, message: 'This is important output', state: :success, head: false, meta: false}
  {at: 2021-01-25 00:00:00 +0100, message: 'And it\'s important to know it happened ', state: :success, head: false, meta: false}
  {at: 2021-01-25 00:00:00 +0100, message: '=> 2021-01-25 00:00:00 +0100', state: :success, head: false, meta: true}
]

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/trifle-io/trifle-logger.

FAQs

Package last updated on 28 Mar 2022

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