updated logger to use settings