An experiment to use AD&D-style log levels, because why not? 'info' and 'fatal' and other log levels are pretty lame anyway.
Plus, now you can 'include Dragons' in your logger, which means it has +2 against Knights and a special fire breathing attack..
# File lib/cabin/mixins/dragons.rb, line 23 def log(alignment, message, data={}) # Invoke 'info?' etc to ask if we should act. if message.is_a?(Hash) data.merge!(message) else data[:message] = message end data[:alignment] = alignment publish(data) end