private void log(TaskId taskId,NotificationLevel notificationLevel,String message,boolean completed,Throwable exception){
  notifier.notify(taskId,notificationLevel,message,completed);
switch (notificationLevel) {
case INFO:
    log.info(message);
  break;
case WARN:
log.warn(message,exception);
break;
case ERROR:
log.error(message,exception);
break;
}
}

private void log ( TaskId taskId , NotificationLevel notificationLevel , String message , boolean completed , Throwable exception ) { notifier . notify ( taskId , notificationLevel , message , completed ) ; switch ( notificationLevel ) { case INFO : log . info ( message ) ; break ; case WARN : log . warn ( message , exception ) ; break ; case ERROR : log . error ( message , exception ) ; break ; } }
helper method for logging both for custom logger and for notifier .
