The file name of .out and .err

Can I make it associated with the job id? For example, if the job id is 6950.host, my output and error files will be automatically generated as 6950.host.out and 6950.host.err.