Permalink
Browse files

simple logger to STDOUT

  • Loading branch information...
1 parent 1609a3a commit 97edae42ac5534d82037c48f3400ea7f995957d8 @mkristian committed Feb 22, 2013
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/ixtlan/errors/dumper.rb
@@ -30,9 +30,16 @@ class Dumper
if defined? ::Slf4r
include ::Slf4r::Logger
else
- require 'logger'
+ class Log
+ def info( msg )
+ puts "[Ixtlan::Errors] #{msg}"
+ end
+ def warn( msg )
+ warn "[Ixtlan::Errors] #{msg}"
+ end
+ end
def logger
- @logger ||= Logger.new( STDOUT )
+ @logger ||= Log.new
end
end

0 comments on commit 97edae4

Please sign in to comment.