Enhances logging functionality by adding additional log level methods (info, warn) to the adapter in Rabbit Carrots core module

This commit is contained in:
Ari Karim 2025-05-25 14:10:40 +03:00
parent 38ca7d3927
commit cb41e257fc
No known key found for this signature in database
GPG Key ID: 1A5559E2E32F1805

View File

@ -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