Create an advanced logging utility