Module: Applitools::EyesLogger

Extended by:
EyesLogger, Forwardable
Included in:
EyesLogger
Defined in:
lib/applitools/eyes_logger.rb

Defined Under Namespace

Classes: NullLogger

Constant Summary collapse

MANDATORY_METHODS =
[:debug, :info, :close].freeze
OPTIONAL_METHODS =
[:warn, :error, :fatal].freeze

Instance Method Summary collapse

Instance Method Details

#log_handlerObject



26
27
28
# File 'lib/applitools/eyes_logger.rb', line 26

def log_handler
  @log_handler
end

#log_handler=(log_handler) ⇒ Object

Raises:

  • (Applitools::EyesError)


20
21
22
23
24
# File 'lib/applitools/eyes_logger.rb', line 20

def log_handler=(log_handler)
  raise Applitools::EyesError.new('log_handler must implement Logger!') unless valid?(log_handler)

  @log_handler = log_handler
end

#loggerObject



30
31
32
# File 'lib/applitools/eyes_logger.rb', line 30

def logger
  self
end