Module: RiderServer::Logger

Included in:
Operation, Operations, Server, Session, Workspace
Defined in:
lib/rider_server/logger.rb

Class Method Summary collapse

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

.logObject



11
12
13
# File 'lib/rider_server/logger.rb', line 11

def log
  @@logger ||= configure_logger
end

Instance Method Details

#logObject



16
17
18
# File 'lib/rider_server/logger.rb', line 16

def log
  Logger.log
end