Module: Savon::Logger
- Included in:
- Request
- Defined in:
- lib/savon/logger.rb
Overview
Savon::Logger
Savon::Logger can be mixed into classes to provide logging behavior.
By default, the Logger mixin uses Ruby’s Logger from the standard library, a log level of :debug and is pointing to STDOUT.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Extends the class including this module with its ClassMethods.
Instance Method Summary collapse
-
#log(message) ⇒ Object
Logs a given
message
.
Class Method Details
.included(base) ⇒ Object
Extends the class including this module with its ClassMethods.
46 47 48 |
# File 'lib/savon/logger.rb', line 46 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#log(message) ⇒ Object
Logs a given message
.
51 52 53 |
# File 'lib/savon/logger.rb', line 51 def log() self.class.logger.send self.class.log_level, if self.class.log? end |