1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00
endofunky--sidetiq/lib/sidetiq/logging.rb
Tobias Svensson e0ebcaacd9 Move to actor-based concurrency.
Using plain threads in Sidekiq's Celluloid-based actor
model is a little bit like riding a motorcycle without
a helmet, so let's try to fit in a bit better.
2013-09-16 12:01:37 +01:00

12 lines
274 B
Ruby

module Sidetiq
# Public: Sidetiq logging interface.
module Logging
%w(fatal error warn info debug).each do |level|
level = level.to_sym
define_method(level) do |msg|
Sidetiq.logger.__send__(level, "[Sidetiq] #{msg}")
end
end
end
end