Add  default behave of logger