Module: Retjilp

Defined in:
lib/retjilp/log.rb,
lib/retjilp/runner.rb,
lib/retjilp/twitter.rb,
lib/retjilp/retweeter.rb

Defined Under Namespace

Classes: Retweeter, Runner, Twitter

Constant Summary collapse

DATA_DIR =
File.expand_path("~/.retjilp")
@@log =
nil

Class Method Summary collapse

Class Method Details

.logObject


6
7
8
9
10
11
12
13
# File 'lib/retjilp/log.rb', line 6

def Retjilp.log
	unless @@log
		@@log = Logger.new(STDERR)
		@@log.formatter = proc { |severity, time, prog, msg| "#{severity}: #{msg}\n" }
		@@log.level = Logger::WARN
	end
	@@log
end