Add logging capabilities to the including class. When using the log/logger variables always check for nil:
log.info "your #{expensive_calculation} comes here" if @log
This way the expensive calculation is avoided if the logger is dissabled (@log == nil).
Attributes
[RW] | logger |