use standard output redirection to pipe the output into a file and there's your logfile.
How standard output redirection works depends on your operating system but usually it involves the > character possibly preceded by a stream identifier.
P.S. you can use the -verbose flag to the compiler to make sure there's always output. As you will know the compiler will normally only give output in case of failure. [ November 10, 2004: Message edited by: Jeroen Wenting ]
author and iconoclast
This is probably the standard question of how to redirect stderr on Windows 95/98/ME; the command window doesn't have scrollback, and the error messages scroll off the screen, but command.com/exe don't let you redirect stderr.
Since JDK 1.2, the answer is to use the -Xstdout switch:
javac -Xstdout logfile BuggyProgram.java
All the output from the compiler will go into "logfile" instead of to the screen.
I'm moving this to Java in General (Beginner) for any further discussion.