copied from serilog for consistency