    001    /*
    002     * Copyright 2009 Red Hat, Inc.
    003     * Red Hat licenses this file to you under the Apache License, version
    004     * 2.0 (the "License"); you may not use this file except in compliance
    005     * with the License.  You may obtain a copy of the License at
    006     *    http://www.apache.org/licenses/LICENSE-2.0
    007     * Unless required by applicable law or agreed to in writing, software
    008     * distributed under the License is distributed on an "AS IS" BASIS,
    009     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    010     * implied.  See the License for the specific language governing
    011     * permissions and limitations under the License.
    012     */
    013
    014    package org.hornetq.spi.core.logging;
    015
    016    /**
    017     * I represent operations that are delegated to underlying logging frameworks.
    018     *
    019     * @author <a href="kenny.macleod@kizoom.com">Kenny MacLeod</a>
    020     *
    021     *
    022     */
    023    public interface LogDelegate
    024    {
    025       boolean isInfoEnabled();
    026
    027       boolean isDebugEnabled();
    028
    029       boolean isTraceEnabled();
    030
    031       void fatal(Object message);
    032
    033       void fatal(Object message, Throwable t);
    034
    035       void error(Object message);
    036
    037       void error(Object message, Throwable t);
    038
    039       void warn(Object message);
    040
    041       void warn(Object message, Throwable t);
    042
    043       void info(Object message);
    044
    045       void info(Object message, Throwable t);
    046
    047       void debug(Object message);
    048
    049       void debug(Object message, Throwable t);
    050
    051       void trace(Object message);
    052
    053       void trace(Object message, Throwable t);
    054    }