Class: EMLogger
- Inherits:
-
Logger
- Object
- Logger
- EMLogger
- Defined in:
- lib/bull/server.rb
Instance Method Summary collapse
- #debug(msg) ⇒ Object
- #error(msg) ⇒ Object
- #info(msg) ⇒ Object
-
#initialize(file, count: 1, size: 1024000, level: Logger::DEBUG) ⇒ EMLogger
constructor
A new instance of EMLogger.
- #warn(msg) ⇒ Object
Constructor Details
#initialize(file, count: 1, size: 1024000, level: Logger::DEBUG) ⇒ EMLogger
Returns a new instance of EMLogger.
15 16 17 18 |
# File 'lib/bull/server.rb', line 15 def initialize(file, count: 1, size: 1024000, level: Logger::DEBUG) super file, count, size @level = level end |
Instance Method Details
#debug(msg) ⇒ Object
30 31 32 33 |
# File 'lib/bull/server.rb', line 30 def debug msg #puts 'debug:', msg EventMachine.defer(proc {super msg}) end |
#error(msg) ⇒ Object
20 21 22 23 |
# File 'lib/bull/server.rb', line 20 def error msg #puts 'error:', msg EventMachine.defer(proc {super msg}) end |
#info(msg) ⇒ Object
25 26 27 28 |
# File 'lib/bull/server.rb', line 25 def info msg #puts 'info:', msg EventMachine.defer(proc {super msg}) end |
#warn(msg) ⇒ Object
35 36 37 38 |
# File 'lib/bull/server.rb', line 35 def warn msg #puts 'warn:', msg EventMachine.defer(proc {super msg}) end |