Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
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))
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)