Class: Mysqlknife::Log

Inherits:
Object
  • Object
show all
Defined in:
lib/mysqlknife/log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLog

Returns a new instance of Log.



7
8
9
# File 'lib/mysqlknife/log.rb', line 7

def initialize
  @log = Logger.new(STDOUT)
end

Instance Attribute Details

#verbose=(value) ⇒ Object (writeonly)

Sets the attribute verbose

Parameters:

  • value

    the value to set the attribute verbose to.



5
6
7
# File 'lib/mysqlknife/log.rb', line 5

def verbose=(value)
  @verbose = value
end

Instance Method Details

#command(command) ⇒ Object



11
12
13
# File 'lib/mysqlknife/log.rb', line 11

def command(command)
  @log.debug("Bash Command: #{command}") if $DEBUG
end