Module: MatrixSdk::Logging
- Included in:
- Api, Client, EventHandlerArray, Room
- Defined in:
- lib/matrix_sdk/util/extensions.rb
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
74 75 76 77 78 79 |
# File 'lib/matrix_sdk/util/extensions.rb', line 74 def logger return MatrixSdk.logger if MatrixSdk.global_logger? return @logger if instance_variable_defined?(:@logger) && @logger ::Logging.logger[self] end |
#logger=(logger) ⇒ Object
81 82 83 |
# File 'lib/matrix_sdk/util/extensions.rb', line 81 def logger=(logger) @logger = logger end |