Moved message logging util to separate package