What is Certificate Transparency and how does it reveal phishing sites?

A phishing site needs HTTPS, and every public HTTPS certificate is written to a public log.