Set up logger to run in background thread