Output via a logger instead of puts