at.spardat.xma.boot.logger.ILogHandler Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2003, 2007 s IT Solutions AT Spardat GmbH .
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* s IT Solutions AT Spardat GmbH - initial API and implementation
*******************************************************************************/
/*
* Created on : 25.06.2003
* Created by : s3595
*/
package at.spardat.xma.boot.logger;
import java.util.Properties;
/**
* ILogHandler
*
* @author s3595 Chr. Schaefer (CGS)
* @version $Id: ILogHandler.java 2084 2007-11-27 14:53:31Z s3460 $
*
*/
public abstract interface ILogHandler {
/**
* Publish a LogRecord.
*
* The logging request was made initially to a Logger object,
* which initialized the LogRecord and forwarded it here.
*
* The Handler is responsible for formatting the message, when and
* if necessary. The formatting should include localization.
*
* @param record description of the log event
*/
public abstract void publish(LogRecord record);
public abstract void close();
public abstract void setProperties( Properties in );
}