Making log method protected