Sha256: b686efb575ba94cfd13d3069fe0dec29ae1026fff53ceeec5f12d6634f70aa1c

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

module Nucleus
  module Enums
    # All types of logs that are distinguished by Nucleus.
    module ApplicationLogfileType
      # The API log aggregates all messages that changed the application state, e.g. updating an application.
      API = :api
      # The application log includes all messages of the application itself
      APPLICATION = :application
      # The build log shows the information of the recent build process(es).
      BUILD = :build
      # The error log shows all logged error messages
      ERROR = :error
      # All logs marked as +other+ can't be assigned to any of the other states
      OTHER = :other
      # The request log shows all requests that were made to the application
      REQUEST = :request
      # System logs aggregate all system relevant outputs,
      # e.g. calling lifecycle operations on application instances
      SYSTEM = :system

      # List all types of log files.
      # @return [Array<Symbol>] Symbols representing a log file type
      def self.all
        constants
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nucleus-0.3.1 lib/nucleus/core/enums/logfile_types.rb
nucleus-0.2.0 lib/nucleus/core/enums/logfile_types.rb
nucleus-0.1.0 lib/nucleus/core/enums/logfile_types.rb