Sha256: 5474f8a3816ee59c8699bea7eb9da25523f57e4597b060ced3fd571a38139083

Contents?: true

Size: 767 Bytes

Versions: 14

Compression:

Stored size: 767 Bytes

Contents

# frozen_string_literal: true

module Evostream
  module Commands
    # Returns a detailed set of information about a stream.
    class SetLogLevel < Command
      MANDATORY = %w[level].freeze

      def initialize(commands = {})
        super(commands)
      end

      def cmd
        super
        "setLogLevel?params=#{encode64}"
      end

      private

      # Change the log level for all log appenders. Default value in the
      # system is set in the config.lua file, which is usually set to 6.
      #
      # Log Levels:
      #    0 - Fatal
      #    1 - Error
      #    2 - Warning
      #    3 - Info
      #    4 - Debug
      #    5 - Fine
      #    6 - Finest
      def level(param = 'null')
        "level=#{param}"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
evostream-event-2.0.3 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.3.pre.1265906291 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.3.pre.1265756691 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.3.pre.1265752332 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.2 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.2.pre.994185738 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.0.pre.994170151 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.0.pre.994165179 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.0.pre.994159616 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.0.pre.856454391 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.0.pre.856447460 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.0.pre.856441003 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.0.pre.816370746 lib/evostream/event/commands/set_log_level.rb
evostream-event-2.0.0.pre.809444619 lib/evostream/event/commands/set_log_level.rb