Limit logging output and size