Write Pulsar logs to file. This should be added in the logging module (there's a todo placeholder in the code already).