Method: Git::CommandLine#logger

Defined in:
lib/git/command_line.rb

#loggerLogger (readonly)

The logger to use for logging git commands and results

Examples:

env = {}
global_opts = %w[]
logger = Logger.new(STDOUT)
cli = CommandLine.new(env, '/usr/bin/git', global_opts, logger)
cli.logger == logger #=> true

Returns:

  • (Logger)


96
97
98
# File 'lib/git/command_line.rb', line 96

def logger
  @logger
end