Changed the input parameters for the method "log"