made 'log' method protected (closes #269)