No commit activity in last 3 years
No release in over 3 years
MongoDB backend for utracker.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
~> 0.0.2
 Project Readme

Micro-tracker MongoDB backend

Build Status Code Climate Test Coverage Gem Version

This is a MongoDB backend for the utracker gem.

Installation

Add utracker-mongodb in your Gemfile. It will add the dependency to the utracker gem itself.

Usage

require 'utracker'
require 'utracker/mongodb'

Utracker.configure do |config|
  # ...

  # Set the log to the MongoDB instance at the MONGODB_URI env variable.
  # If no MONGODB_URI can be found, it will look MongoDB on localhost:27017.
  config[:logger] = Utracker::MongoDB::Logger.new(database_name: 'utracker')

  # ...
end

There is some options available when you're using the logger:

  • database_name allow you to choose the database you want to use, default to utracker
  • collection_name allow you to choose the collection you want to use, default to entries