Extract headers for log

Signed-off-by: Simonas Leleiva <simonas.leleiva@meramo.co.uk>
Merge pull request #227 from sledges/log

Extract headers for log