updated logger definition