Method: Betterlog::Log::Severity#hash

Defined in:
lib/betterlog/log/severity.rb

#hashInteger

Returns the hash value corresponding to the severity name symbol.

This method provides a hash representation of the internal symbol identifier for the severity level, which is used for consistent identification and comparison operations within the logging system.

Returns:

  • (Integer)

    the hash value of the severity name symbol



165
166
167
# File 'lib/betterlog/log/severity.rb', line 165

def hash
  @name.hash
end