Detect engine init?

I’m looking to fire something automatically when the editor is opened, is that possible?
Like maybe throw something in the default level that writes out the date when the level is opened in the editor?