So I'd suggest to do a little bit of level juggling - first, put the audio interface gain where you are getting the optimal signal, without clipping. Peaking at under -12dBFS is fine, averaging down in the -20dBFS is OK too.
Now, if you are struggling with monitoring, it's likely that your mix in Logic is super loud (ie, up in the 0dBFS peak range.) Turn your tracks down, and when your track is record enabled, turn the level of that fader up (faders have an independent level when in record mode) and see if you can get a monitor balance you're happy with. If not, you can always put a gain plugin, or compressor plugin, on that channel which will also non-destructively add gain.
Juggle with these things until you can find a happy balance that works for you, and things will be much better, and yes, turn your monitoring up to compensate bringing the mix down. If you want to run through a mic-pre, then a hardware compressor, then into your audio interface, then go for it, if that works better for you and you can generate a hotter signal without clipping.
But I think the main problem is often people are running their mixes a super-loud, and recording quite low, and struggling to achieve a balance. In this case, giving proper mix headroom to bring those elements down will help a lot - you can make up the final gain towards the end of the process after the recording is done.
Your problem isn't fixed by printing software compression into the files - it almost never is, which is why I responded as such in the first post. There's almost no reason to do this. 👍