blob: 688d8faf638b87b09f6610e1a1aa3413ed154cdd [file] [log] [blame]
package org.eclipse.app4mc.sca.logging.impl;
import org.eclipse.app4mc.sca.logging.exception.App4mcLoggerException;
import org.eclipse.app4mc.sca.logging.util.LogInformation;
/**
********************************************************************************
* Copyright (c) 2017 Robert Bosch GmbH and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
********************************************************************************
*/
/**
*/
public interface ILogger {
/**
* @param logInfo {@link LogInformation}
*/
public void log(final LogInformation logInfo);
/**
* Closes the logger opened
*/
public void closeLogger();
/**
* Validates the given log information and returns the state
*
* @param logInfo The log information to be validated
* @return true if the log info contains relevant data to log into the this external logger
* @throws App4mcLoggerException If the validation fails
*/
public boolean isEnabled(final LogInformation logInfo) throws App4mcLoggerException;
}