A kernel panic handler writes down a piece of stack, a piece of code, contents of registers, and some minimal message.
Normally the machine does not reboot, so that you could photograph the console maybe.
(The screen normally remains white on black. The console can as well be a COM port.)
You can configure it to auto-reboot by putting a timeout value to /proc/sys/kernel/panic.