Module: MatrixSdk::Logging

Included in:
Api, Client, EventHandlerArray, Room
Defined in:
lib/matrix_sdk/util/extensions.rb

Instance Method Summary collapse

Instance Method Details

#loggerObject



65
66
67
68
69
# File 'lib/matrix_sdk/util/extensions.rb', line 65

def logger
  return MatrixSdk.logger if MatrixSdk.global_logger?

  @logger ||= ::Logging.logger[self]
end

#logger=(logger) ⇒ Object



71
72
73
# File 'lib/matrix_sdk/util/extensions.rb', line 71

def logger=(logger)
  @logger = logger
end