Logging to a separate logfile from my toolkit app?

Wondering if someone can share a piecemeal bit of code that sets up a separate logger for a custom app (so a separate rotating log file).

I’ve not managed to get this working using the docs and am probbaly missing something silly.