Module: Yast::Logger

Included in:
Debugger, Profiler, WFM
Defined in:
src/ruby/yast/y2logger.rb

Overview

This module provides access to Yast specific logging

Examples:

Yast::Logger example

module Yast
  class Foo < Client
    include Yast::Logger

    def foo
      # this will be logged into y2log using the usual y2log format

      # Builtins.y2debug() replacement
      log.debug "debug"

      # Builtins.y2milestone() replacement
      log.info "info"

      # Builtins.y2error() replacement
      log.error "error"
    end
  end
end

Instance Method Summary collapse

Instance Method Details

#logObject



68
69
70
# File 'src/ruby/yast/y2logger.rb', line 68

def log
  Y2Logger.instance
end