created filesink class for logging instead of using streamsink