Separate message logging in different classes