All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jradius.log.RadiusLogger Maven / Gradle / Ivy

The newest version!
/**
 * JRadius - A RADIUS Server Java Adapter
 * Copyright (C) 2004-2005 PicoPoint, B.V.
 *
 * This library is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or (at
 * your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library; if not, write to the Free Software Foundation,
 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */

package net.jradius.log;

/**
 * JRadius RadiusLogger Interface.
 * @author David Bird
 */
public interface RadiusLogger
{
    public final int LEVEL_OFF = 0;
    public final int LEVEL_ERROR = 2;
    public final int LEVEL_WARNING = 4;
    public final int LEVEL_INFO = 6;
    public final int LEVEL_DEBUG = 8;

    public abstract boolean isLoggable(int logLevel);

    public abstract void error(String message);
    public abstract void error(String message, Throwable e);
    public abstract void warn(String message);
    public abstract void warn(String message, Throwable e);
    public abstract void info(String message);
    public abstract void info(String message, Throwable e);
    public abstract void debug(String message);
    public abstract void debug(String message, Throwable e);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy