Update logger to handle multiple instances