Class: PiscinaLogger::Configuration
- Inherits:
-
Object
- Object
- PiscinaLogger::Configuration
- Defined in:
- lib/piscina/piscina_logger.rb
Instance Attribute Summary collapse
-
#log_directory ⇒ Object
Returns the value of attribute log_directory.
-
#logging_level ⇒ Object
Returns the value of attribute logging_level.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/piscina/piscina_logger.rb', line 64 def initialize @logging_level = Logger::INFO # Assume a rails app @log_directory = if defined?(Rails) File.join(Rails.root.to_s, "log") else nil end end |
Instance Attribute Details
#log_directory ⇒ Object
Returns the value of attribute log_directory.
61 62 63 |
# File 'lib/piscina/piscina_logger.rb', line 61 def log_directory @log_directory end |
#logging_level ⇒ Object
Returns the value of attribute logging_level.
62 63 64 |
# File 'lib/piscina/piscina_logger.rb', line 62 def logging_level @logging_level end |