Added async postgres writer.
Check if logger is configured before running it.