How to capture kernel panic messages with netconsole

How to capture kernel panic messages with netconsole