Converted ui.Logger to an interface