refactoring how nonotify log is defined