Class: ElasticLogger::Configuration
- Inherits:
-
Object
- Object
- ElasticLogger::Configuration
- Defined in:
- lib/elastic-logger/configuration.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#path ⇒ Object
Returns the value of attribute path.
-
#prefix ⇒ Object
Returns the value of attribute prefix.
-
#types_file ⇒ Object
Returns the value of attribute types_file.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/elastic-logger/configuration.rb', line 3 def host @host end |
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/elastic-logger/configuration.rb', line 3 def path @path end |
#prefix ⇒ Object
Returns the value of attribute prefix.
3 4 5 |
# File 'lib/elastic-logger/configuration.rb', line 3 def prefix @prefix end |
#types_file ⇒ Object
Returns the value of attribute types_file.
3 4 5 |
# File 'lib/elastic-logger/configuration.rb', line 3 def types_file @types_file end |