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
Pipe the result to split like this:
java MyAppName | split -b500k - Console.log
This will create a new file every time you go over 500k. See the man-page for split for more details and options.