Module: Alexandria::Logging
- Included in:
- BookProviders, BookProviders::DoubanProvider, BookProviders::ThaliaProvider, BookProviders::WorldCatProvider, BookProviders::Z3950Provider, ExportFormat, ImportFilter, Library, LibrarySortOrder, LibraryStore, Preferences, Scanners::CueCat, SmartLibrary, SmartLibrary::Rule::Operators, UI, UI::AcquireDialog, UI::BookPropertiesDialogBase, UI::Callbacks, UI::IconViewManager, UI::IconViewTooltips, UI::Icons, UI::ImportDialog, UI::ListViewManager, UI::MainApp, UI::NewBookDialog, UI::PreferencesDialog, UI::SidepaneManager, UI::SkipEntryDialog, UI::SmartLibraryPropertiesDialogBase, UI::UIManager
- Defined in:
- lib/alexandria/logging.rb
Overview
A mixin to include a log
instance method for objects or a static log
method for classes and modules. In either case, a LogWrapper
is returned which wraps the Alexandria log and specifies the appropriate source object, class or module.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
125 126 127 |
# File 'lib/alexandria/logging.rb', line 125 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#log ⇒ Object
129 130 131 |
# File 'lib/alexandria/logging.rb', line 129 def log @log ||= LogWrapper.new(Alexandria.log, self) end |