XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3-next-M3
    • General
    • None

    Description

      Examples from myfaces:

      if(projectStage.equals(ProjectStage.Development) || projectStage.equals(ProjectStage.UnitTest))
      log.warning("ALT attribute is missing for : " + uiComponent.getId());

      if (log.isLoggable(Level.WARNING)) log.warning("Graphic with id " + uiComponent.getClientId(facesContext) + " has no value (url or name).");

      Level level = Level.FINE;
      if (!_facesContext.isProjectStage(ProjectStage.Production))

      { level = Level.WARNING; } if (log.isLoggable(level)) { ...}

      if (facesContext.isProjectStage(ProjectStage.Development))
      {

      Clarify:

      • facesContext.isProjectStage(ProjectStage.Development) vs !_facesContext.isProjectStage(ProjectStage.Production) - how to understand UnitTest and SystemTest stages when logging
      • which logs are conditioned with project stage
      • if log something with level FINE in production (performance)

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: