Module: RiderServer::Logger
- Included in:
- Operation, Operations, Server, Session, Workspace
- Defined in:
- lib/rider_server/logger.rb
Class Method Summary collapse
-
.configure_logger(logdev: ::STDERR, level: ENV["LOG_LEVEL"] || "INFO") ⇒ Object
rubocop:disable Style/GlobalStdStream.
- .log ⇒ Object
Instance Method Summary collapse
Class Method Details
.configure_logger(logdev: ::STDERR, level: ENV["LOG_LEVEL"] || "INFO") ⇒ Object
rubocop:disable Style/GlobalStdStream
6 7 8 9 |
# File 'lib/rider_server/logger.rb', line 6 def configure_logger(logdev: ::STDERR, level: ENV["LOG_LEVEL"] || "INFO") # rubocop:disable Style/GlobalStdStream log_level = level.upcase.to_sym @@logger = ::Logger.new(logdev, level: log_level) end |
.log ⇒ Object
11 12 13 |
# File 'lib/rider_server/logger.rb', line 11 def log @@logger ||= configure_logger end |