Declare variables in log function.