createLogger fixed