Adding filename parameter to log method