|
Glassfish example source code file (LoggingXMLNames.java)
The Glassfish LoggingXMLNames.java source code/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL") (collectively, the "License"). You * may not use this file except in compliance with the License. You can * obtain a copy of the License at * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html * or packager/legal/LICENSE.txt. See the License for the specific * language governing permissions and limitations under the License. * * When distributing the software, include this License Header Notice in each * file and include the License file at packager/legal/LICENSE.txt. * * GPL Classpath Exception: * Oracle designates this particular file as subject to the "Classpath" * exception as provided by Oracle in the GPL Version 2 section of the License * file that accompanied this code. * * Modifications: * If applicable, add the following below the License Header, with the fields * enclosed by brackets [] replaced by your own identifying information: * "Portions Copyright [year] [name of copyright owner]" * * Contributor(s): * If you wish your version of this file to be governed by only the CDDL or * only the GPL Version 2, indicate your decision by adding "[Contributor] * elects to include this software in this distribution under the [CDDL or GPL * Version 2] license." If you don't indicate a single choice of license, a * recipient has the option to distribute your version of this file under * either the CDDL, the GPL Version 2 or to extend the choice of license to * its licensees as provided above. However, if you add GPL Version 2 code * and therefore, elected the GPL Version 2 license, then the option applies * only if the new code is made subject to such option by the copyright * holder. */ package com.sun.common.util.logging; import com.sun.logging.LogDomains; import java.util.Map; import java.util.HashMap; public class LoggingXMLNames { public static final String file = "file"; public static final String logRotationLimitInBytes = "log-rotation-limit-in-bytes"; public static final String logRotationTimelimitInMinutes ="log-rotation-timelimit-in-minutes"; public static final String logFormatter = "log-formatter"; public static final String logHandler = "log-handler"; public static final String useSystemLogging = "use-system-logging"; public static final String logFilter= "log-filter"; public static final String logToConsole = "log-to-console"; public static final String alarms= "alarms"; public static final String retainErrorStatisticsForHours = "retain-error-statistics-for-hours"; // logger names from DTD public static final String root = "root"; public static final String server = "server"; public static final String ejbcontainer = "ejb-container"; public static final String cmpcontainer = "cmp-container"; public static final String mdbcontainer = "mdb-container"; public static final String webcontainer = "web-container"; public static final String classloader = "classloader"; public static final String configuration = "configuration"; public static final String naming = "naming"; public static final String security = "security"; public static final String jts = "jts"; public static final String jta = "jta"; public static final String admin = "admin"; public static final String deployment = "deployment"; public static final String verifier = "verifier"; public static final String jaxr = "jaxr"; public static final String jaxrpc ="jaxrpc"; public static final String saaj ="saaj"; public static final String corba = "corba"; public static final String javamail ="javamail"; public static final String jms ="jms"; public static final String connector ="connector"; public static final String jdo = "jdo"; public static final String cmp = "cmp"; public static final String util = "util"; public static final String resourceadapter = "resource-adapter"; public static final String synchronization = "synchronization"; public static final String nodeAgent = "node-agent"; public static final String selfmanagement = "self-management"; public static final String groupmanagementservice = "group-management-service"; public static final String managementevent ="management-event"; //mapping of the names used in domain.xml to the names used in logging.properties public static final Map<String , String> xmltoPropsMap = new HashMap<String , String>() {{ put(logRotationLimitInBytes, LoggingPropertyNames.logRotationLimitInBytes); put(logRotationTimelimitInMinutes, LoggingPropertyNames.logRotationTimelimitInMinutes); put(file, LoggingPropertyNames.file); put(logFormatter, LoggingPropertyNames.logFormatter); put(logHandler, LoggingPropertyNames.logHandler); put(useSystemLogging, LoggingPropertyNames.useSystemLogging); put(retainErrorStatisticsForHours, LoggingPropertyNames.retainErrorStatisticsForHours); put(logFilter, LoggingPropertyNames.logFilter); put(logToConsole, LoggingPropertyNames.logToConsole); put(alarms, LoggingPropertyNames.alarms); put(root, LogDomains.DOMAIN_ROOT+ "level"); put(server, LogDomains.SERVER_LOGGER+ ".level"); put(ejbcontainer, LogDomains.EJB_LOGGER+ ".level"); put(cmpcontainer, LogDomains.CMP_LOGGER+ ".level"); put(mdbcontainer, LogDomains.MDB_LOGGER+ ".level"); put(webcontainer, LogDomains.WEB_LOGGER+ ".level"); put(classloader, LogDomains.LOADER_LOGGER+ ".level"); put(configuration, LogDomains.CONFIG_LOGGER+ ".level"); put(naming, LogDomains.NAMING_LOGGER+ ".level"); put(security, LogDomains.SECURITY_LOGGER+ ".level"); put(jts, LogDomains.TRANSACTION_LOGGER+".level"); put(jta, LogDomains.JTA_LOGGER+ ".level"); put(admin, LogDomains.ADMIN_LOGGER+ ".level"); put(deployment, LogDomains.DPL_LOGGER+ ".level"); // put(verifier, LogDomains. put(jaxr, LogDomains.JAXR_LOGGER+ ".level"); put(jaxrpc, LogDomains.JAXRPC_LOGGER+ ".level"); put(saaj, LogDomains.SAAJ_LOGGER+ ".level"); put(corba, LogDomains.CORBA_LOGGER+ ".level"); put(javamail, LogDomains.JAVAMAIL_LOGGER+ ".level"); put(jms, LogDomains.JMS_LOGGER+ ".level"); // put(connector, LogDomains. put(jdo, LogDomains.JDO_LOGGER+ ".level"); put(cmp, LogDomains.CMP_LOGGER+ ".level"); put(util, LogDomains.UTIL_LOGGER+ ".level"); put(resourceadapter, LogDomains.RSR_LOGGER+ ".level"); // put(synchronization, LogDomains. // put(nodeAgent, LogDomains. put(selfmanagement, LogDomains.SELF_MANAGEMENT_LOGGER+ ".level"); // put(groupManagementService, LogDomains. // put(managementEvent, LogDomains. }}; } Other Glassfish examples (source code examples)Here is a short list of links related to this Glassfish LoggingXMLNames.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.