Class: Logster::Configuration
- Inherits:
-
Object
- Object
- Logster::Configuration
- Defined in:
- lib/logster/configuration.rb
Instance Attribute Summary collapse
-
#allow_grouping ⇒ Object
Returns the value of attribute allow_grouping.
-
#application_version ⇒ Object
Returns the value of attribute application_version.
-
#back_to_site_link_text ⇒ Object
Returns the value of attribute back_to_site_link_text.
-
#current_context ⇒ Object
Returns the value of attribute current_context.
-
#enable_backtrace_links ⇒ Object
Returns the value of attribute enable_backtrace_links.
-
#enable_custom_patterns_via_ui ⇒ Object
Returns the value of attribute enable_custom_patterns_via_ui.
-
#enable_js_error_reporting ⇒ Object
Returns the value of attribute enable_js_error_reporting.
-
#env_expandable_keys ⇒ Object
Returns the value of attribute env_expandable_keys.
-
#environments ⇒ Object
Returns the value of attribute environments.
-
#gems_dir ⇒ Object
Returns the value of attribute gems_dir.
-
#max_env_bytes ⇒ Object
Returns the value of attribute max_env_bytes.
-
#max_env_count_per_message ⇒ Object
Returns the value of attribute max_env_count_per_message.
-
#maximum_message_length ⇒ Object
Returns the value of attribute maximum_message_length.
-
#maximum_message_size_bytes ⇒ Object
Returns the value of attribute maximum_message_size_bytes.
-
#project_directories ⇒ Object
Returns the value of attribute project_directories.
-
#rate_limit_error_reporting ⇒ Object
Returns the value of attribute rate_limit_error_reporting.
- #subdirectory ⇒ Object
-
#use_full_hostname ⇒ Object
Returns the value of attribute use_full_hostname.
-
#web_title ⇒ Object
Returns the value of attribute web_title.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/logster/configuration.rb', line 29 def initialize # lambda |env,block| @current_context = lambda { |_, &block| block.call } @environments = i[development production] @subdirectory = nil = [] @enable_custom_patterns_via_ui = false @rate_limit_error_reporting = true @enable_js_error_reporting = true = 10_000 @max_env_bytes = 1000 = 50 @project_directories = [] @enable_backtrace_links = true @gems_dir = Gem.dir + "/gems/" = 2000 @use_full_hostname = nil @allow_grouping = false @allow_grouping = true if defined?(::Rails.env) && ::Rails.env.production? end |
Instance Attribute Details
#allow_grouping ⇒ Object
Returns the value of attribute allow_grouping.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def allow_grouping @allow_grouping end |
#application_version ⇒ Object
Returns the value of attribute application_version.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def application_version @application_version end |
#back_to_site_link_text ⇒ Object
Returns the value of attribute back_to_site_link_text.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def back_to_site_link_text @back_to_site_link_text end |
#current_context ⇒ Object
Returns the value of attribute current_context.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def current_context @current_context end |
#enable_backtrace_links ⇒ Object
Returns the value of attribute enable_backtrace_links.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def enable_backtrace_links @enable_backtrace_links end |
#enable_custom_patterns_via_ui ⇒ Object
Returns the value of attribute enable_custom_patterns_via_ui.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def enable_custom_patterns_via_ui @enable_custom_patterns_via_ui end |
#enable_js_error_reporting ⇒ Object
Returns the value of attribute enable_js_error_reporting.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def enable_js_error_reporting @enable_js_error_reporting end |
#env_expandable_keys ⇒ Object
Returns the value of attribute env_expandable_keys.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def end |
#environments ⇒ Object
Returns the value of attribute environments.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def environments @environments end |
#gems_dir ⇒ Object
Returns the value of attribute gems_dir.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def gems_dir @gems_dir end |
#max_env_bytes ⇒ Object
Returns the value of attribute max_env_bytes.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def max_env_bytes @max_env_bytes end |
#max_env_count_per_message ⇒ Object
Returns the value of attribute max_env_count_per_message.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def end |
#maximum_message_length ⇒ Object
Returns the value of attribute maximum_message_length.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def end |
#maximum_message_size_bytes ⇒ Object
Returns the value of attribute maximum_message_size_bytes.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def end |
#project_directories ⇒ Object
Returns the value of attribute project_directories.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def project_directories @project_directories end |
#rate_limit_error_reporting ⇒ Object
Returns the value of attribute rate_limit_error_reporting.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def rate_limit_error_reporting @rate_limit_error_reporting end |
#subdirectory ⇒ Object
52 53 54 |
# File 'lib/logster/configuration.rb', line 52 def subdirectory @subdirectory || "/logs" end |
#use_full_hostname ⇒ Object
Returns the value of attribute use_full_hostname.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def use_full_hostname @use_full_hostname end |
#web_title ⇒ Object
Returns the value of attribute web_title.
5 6 7 |
# File 'lib/logster/configuration.rb', line 5 def web_title @web_title end |