move line() method from loggers back to the WP_CLI class