changed the log function

changed the log function to get the path to the current directory