Is there a way to display an alert, when I may not have a handle on a ViewController?

I'm creating a centralized function for logging errors to the console, to my database, and ideally I'd like to pop up a notification for the user. I'd rather not have to pass in a ViewController every time I log an error.