Unify logging in different project stages
-----------------------------------------

                 Key: MYFACES-3242
                 URL: https://issues.apache.org/jira/browse/MYFACES-3242
             Project: MyFaces Core
          Issue Type: Sub-task
            Reporter: Martin Kočí
            Priority: Minor


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)


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to