Module: Shoes::Log
- Included in:
- Niente::DisplayService, Scarpe::CCInstance, Scarpe::Components::AssetServer, Scarpe::Components::ModularLogImpl, Scarpe::Components::PrintLogImpl, Scarpe::Promise, Scarpe::Webview::ContainedService, Scarpe::Webview::ControlInterface, Scarpe::Webview::DisplayService, Scarpe::Webview::Drawable, Scarpe::Webview::RelayDisplayService, Scarpe::Webview::WebWrangler, Scarpe::Webview::WebWrangler::DOMWrangler, App, DisplayService, Drawable, LoggedWrapper
- Defined in:
- lacci/lib/shoes/log.rb
Overview
Include this module to get a @log instance variable to log as your configured component.
Constant Summary collapse
- DEFAULT_COMPONENT =
These constants will wind up included in a lot of places. Should they move?
"default"
- DEFAULT_LOG_CONFIG =
{ "default" => "info", }
- DEFAULT_DEBUG_LOG_CONFIG =
{ "default" => "debug", }
Class Attribute Summary collapse
-
.current_log_config ⇒ Object
readonly
Returns the value of attribute current_log_config.
-
.instance ⇒ Object
Returns the value of attribute instance.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.current_log_config ⇒ Object (readonly)
Returns the value of attribute current_log_config.
28 29 30 |
# File 'lacci/lib/shoes/log.rb', line 28 def current_log_config @current_log_config end |
.instance ⇒ Object
Returns the value of attribute instance.
27 28 29 |
# File 'lacci/lib/shoes/log.rb', line 27 def instance @instance end |
Class Method Details
.configure_logger(log_config) ⇒ Object
40 41 42 |
# File 'lacci/lib/shoes/log.rb', line 40 def configure_logger(log_config) @instance.configure_logger(log_config) end |
.logger(component = self) ⇒ Object
36 37 38 |
# File 'lacci/lib/shoes/log.rb', line 36 def logger(component = self) @instance.logger_for_component(component) end |