Write kernel log to memory.