XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3-next-M3
    • Component/s: General
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: