| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!-- |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| --> |
| |
| <ui:composition template="/main.xhtml" |
| xmlns:tc="http://myfaces.apache.org/tobago/component" |
| xmlns:ui="http://java.sun.com/jsf/facelets" |
| xmlns:f="http://java.sun.com/jsf/core" |
| xmlns="http://www.w3.org/1999/xhtml"> |
| <ui:param name="title" value="Logging Info"/> |
| |
| <tc:gridLayout rows="auto auto auto 1fr" rendered="#{info.enabled}"> |
| |
| <tc:in label="Test Category" value="#{universalLoggingInfo.testCategory}"/> |
| <tc:button label="Update" action="#{universalLoggingInfo.update}"/> |
| |
| <tc:separator/> |
| |
| <tc:gridLayout columns="auto 120px auto 1fr"> |
| |
| <tc:label value="JUL" tip="Java Util Logging"/> |
| <tc:selectBooleanCheckbox value="#{universalLoggingInfo.jul.available}" readonly="true" |
| label="available" labelLayout="skip"/> |
| <tc:button label="Log" tip="Log some stuff in every level" action="#{universalLoggingInfo.jul.logDemo}" |
| disabled="#{not universalLoggingInfo.jul.available}"/> |
| <tc:out value="#{universalLoggingInfo.jul.activeLevels}"/> |
| |
| <tc:label value="SLF4J" tip="Simple Logging Facade"/> |
| <tc:selectBooleanCheckbox value="#{universalLoggingInfo.slf4j.available}" readonly="true" |
| label="available" labelLayout="skip"/> |
| <tc:button label="Log" tip="Log some stuff in every level" action="#{universalLoggingInfo.slf4j.logDemo}" |
| disabled="#{not universalLoggingInfo.slf4j.available}"/> |
| <tc:out value="#{universalLoggingInfo.slf4j.activeLevels}"/> |
| |
| <tc:label value="LOG4J"/> |
| <tc:selectBooleanCheckbox value="#{universalLoggingInfo.log4j.available}" readonly="true" |
| label="available" labelLayout="skip"/> |
| <tc:button label="Log" tip="Log some stuff in every level" action="#{universalLoggingInfo.log4j.logDemo}" |
| disabled="#{not universalLoggingInfo.log4j.available}"/> |
| <tc:out value="#{universalLoggingInfo.log4j.activeLevels}"/> |
| |
| <tc:label value="LOG4J2"/> |
| <tc:selectBooleanCheckbox value="#{universalLoggingInfo.log4j2.available}" readonly="true" |
| label="available" labelLayout="skip"/> |
| <tc:button label="Log" tip="Log some stuff in every level" action="#{universalLoggingInfo.log4j2.logDemo}" |
| disabled="#{not universalLoggingInfo.log4j2.available}"/> |
| <tc:out value="#{universalLoggingInfo.log4j2.activeLevels}"/> |
| |
| <tc:label value="JCL" tip="Commons Logging"/> |
| <tc:selectBooleanCheckbox value="#{universalLoggingInfo.commonsLogging.available}" readonly="true" |
| label="available" labelLayout="skip"/> |
| <tc:button label="Log" tip="Log some stuff in every level" action="#{universalLoggingInfo.commonsLogging.logDemo}" |
| disabled="#{not universalLoggingInfo.commonsLogging.available}"/> |
| <tc:out value="#{universalLoggingInfo.commonsLogging.activeLevels}"/> |
| </tc:gridLayout> |
| |
| <tc:flowLayout> |
| |
| <h3>This is a test page to check if all logging libraries are working well in the used container.</h3> |
| |
| <ul> |
| <li>Change the category to check different categories and press "update" to see if the category is enabled.</li> |
| <li>Press "Log some stuff in every level" to log in that category.</li> |
| <li>Consult your log file (or anywhere you are logging) to check the result</li> |
| </ul> |
| |
| </tc:flowLayout> |
| </tc:gridLayout> |
| </ui:composition> |