001 package net.sf.logdistiller.logtypes;
002
003 /*
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017 import java.util.*;
018
019 import net.sf.logdistiller.LogType;
020 import net.sf.logdistiller.LogTypes;
021
022 /**
023 * Declaration of base logtypes that are shipped with <b>LogDistiller</b>.
024 */
025 public class BaseLogTypes
026 extends LogTypes
027 {
028 public final static LogType SIMPLE_LINE = SimpleLineLogEvent.LOGTYPE;
029
030 public final static LogType SYSLOG = SyslogLogEvent.LOGTYPE;
031
032 public final static LogType WEBLOGIC = WeblogicLogEvent.LOGTYPE;
033
034 /** @since 0.7 */
035 public final static LogType LOG4J_XML = Log4jXmlLogEvent.LOGTYPE;
036
037 /** @since 0.9 */
038 public final static LogType ORACLE_ALERT = OracleAlertLogEvent.LOGTYPE;
039
040 /** @since 0.9 */
041 public final static LogType JBOSS = JBossLogEvent.LOGTYPE;
042
043 private final static LogType[] LOGTYPES = { SIMPLE_LINE, SYSLOG, WEBLOGIC, LOG4J_XML, ORACLE_ALERT, JBOSS };
044
045 private final static List LOGTYPES_LIST = Collections.unmodifiableList( Arrays.asList( LOGTYPES ) );
046
047 public List defineLogTypes()
048 {
049 return LOGTYPES_LIST;
050 }
051 }