update logger to support handler