Class: Strava::Logger
- Inherits:
-
Logger
- Object
- Logger
- Strava::Logger
- Defined in:
- lib/strava/logger.rb
Overview
Default logger for the Strava client library.
Extends the standard Ruby Logger class and provides a default logger instance configured to output warnings and errors to STDOUT. The logger can be customized via the Web configuration to control HTTP request/response logging.
Class Method Summary collapse
-
.logger ⇒ Strava::Logger
Returns the default logger instance.
Class Method Details
.logger ⇒ Strava::Logger
Returns the default logger instance.
Creates a memoized logger that outputs to STDOUT with a default log level of WARN. This logger is used by default for HTTP request logging unless overridden in the configuration.
34 35 36 37 38 39 40 |
# File 'lib/strava/logger.rb', line 34 def self.logger @logger ||= begin logger = new $stdout logger.level = Logger::WARN logger end end |