Moved ILogger methods to extension methods.