Added saveLog function that use a variable number of args