Sha256: 015e364650eaa9d4b23779a737e1c7bba7df278b1d4ce3138077443beab0562b
Contents?: true
Size: 520 Bytes
Versions: 21
Compression:
Stored size: 520 Bytes
Contents
module Grape module DSL module Logger include Grape::DSL::Settings attr_writer :logger # Set or retrive the configured logger. If none was configured, this # method will create a new one, logging to stdout. # @param logger [Object] the new logger to use def logger(logger = nil) if logger global_setting(:logger, logger) else global_setting(:logger) || global_setting(:logger, ::Logger.new($stdout)) end end end end end
Version data entries
21 entries across 21 versions & 2 rubygems