How to make logging in easier?