can you give examples of using hanami logger? I found some controversial
Examples, some says it is already inside hanami(and you can use just logger.info('test')
, unfortunately at least for me it is not working, I only see config for logger inside environment.rb), some says you need to install gem hanami-utils, then
require 'hanami/logger'
logger = Hanami::Logger.new('Test', level: 'info')
logger.info('test')
It works, but how to require it to all modules? Or only way to use global variables and say rubocop don't worry on every logger line? Sorry for may be stupid question ruby and hanami is new world for me.