Added method for getting log