mirror of
https://github.com/ditkrg/rabbit_carrots.git
synced 2026-01-22 13:56:41 +00:00
Enhances logging functionality by adding additional log level methods (info, warn) to the adapter in Rabbit Carrots core module
This commit is contained in:
parent
38ca7d3927
commit
cb41e257fc
@ -125,12 +125,15 @@ module RabbitCarrots
|
||||
def adapter.info(msg)
|
||||
@logger.write("[INFO] #{msg}\n")
|
||||
end
|
||||
|
||||
def adapter.error(msg)
|
||||
@logger.write("[ERROR] #{msg}\n")
|
||||
end
|
||||
|
||||
def adapter.warn(msg)
|
||||
@logger.write("[WARN] #{msg}\n")
|
||||
end
|
||||
|
||||
adapter.instance_variable_set(:@logger, logger)
|
||||
adapter
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user