made a separate file for setup/flushing of library loggers and updated logger.go appropriately