I have java application which I am running on Unix from the command prompt. I am redirecting stdout and stderr to console.out and console.err files
console.out
console.err
Or you can use rotatelogs
rotatelogs
nohup java MyAppName 2>&1 | rotatelogs -l Console_%Y-%m-%d.log 86400 &
This will create a new file with today's date every day