Class: ElasticLogger::Types
- Inherits:
-
Object
- Object
- ElasticLogger::Types
- Defined in:
- lib/elastic-logger/types.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
3 4 5 |
# File 'lib/elastic-logger/types.rb', line 3 def all logs end |
#by_writter(writer) ⇒ Object
7 8 9 |
# File 'lib/elastic-logger/types.rb', line 7 def by_writter(writer) logs.select { |_, values| values.fetch("writer") == writer } end |
#find(name) ⇒ Object
11 12 13 |
# File 'lib/elastic-logger/types.rb', line 11 def find(name) logs.fetch(name, default) end |