Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

simple logger to STDOUT

  • Loading branch information...
commit 97edae42ac5534d82037c48f3400ea7f995957d8 1 parent 1609a3a
@mkristian authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/ixtlan/errors/dumper.rb
View
11 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
Please sign in to comment.
Something went wrong with that request. Please try again.