Method: Methadone::SH#set_sh_logger

Defined in:
lib/methadone/sh.rb

#set_sh_logger(logger) ⇒ Object

Override the default logger (which is the one provided by CLILogging). You would do this if you want a custom logger or you aren’t mixing-in CLILogging.

Note that this method is not called sh_logger= to avoid annoying situations where Ruby thinks you are setting a local variable



154
155
156
# File 'lib/methadone/sh.rb', line 154

def set_sh_logger(logger)
  @sh_logger = logger
end