Skip to content

Instantly share code, notes, and snippets.

View cosenmarco's full-sized avatar
🎯
Focusing

Marco Cosentino cosenmarco

🎯
Focusing
View GitHub Profile
@cosenmarco
cosenmarco / slogger.rb
Created October 23, 2011 15:52
A simple singleton logger
# Author: Marco Cosentino <cosentino.ma _AT_ gmail.com>
require 'singleton'
require 'logger'
class SLogger
include Singleton
attr_accessor :log
["fatal","error","warn","info","debug"].each do |msg|