Better serilog support

Fixes #381