Class: ElasticLogger::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic-logger/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
# File 'lib/elastic-logger/configuration.rb', line 5

def initialize
  @host = 'localhost:9200'
  @types_file = 'config/elastic_log_types.yml'
  @path = 'log'
  @prefix = ''
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/elastic-logger/configuration.rb', line 3

def host
  @host
end

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/elastic-logger/configuration.rb', line 3

def path
  @path
end

#prefixObject

Returns the value of attribute prefix.



3
4
5
# File 'lib/elastic-logger/configuration.rb', line 3

def prefix
  @prefix
end

#types_fileObject

Returns the value of attribute types_file.



3
4
5
# File 'lib/elastic-logger/configuration.rb', line 3

def types_file
  @types_file
end