blob: 7d03e0936c2a5e60e544ca11fd3e4f6c4e15774d [file] [log] [blame]
/*
* Copyright (c) 2020 Kentyou.
* 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:
* Kentyou - initial API and implementation
*/
package org.osgi.service.log;
import org.osgi.annotation.versioning.ProviderType;
/**
* This is a stripped down copy of the LogService 1.4 API (R7). It's
* trimmed down to the methods used by the optional support for
* R7 logging.
*/
@ProviderType
public interface Logger {
String ROOT_LOGGER_NAME = "ROOT";
boolean isDebugEnabled();
void debug(String message);
void debug(String format, Object arg);
boolean isInfoEnabled();
void info(String message);
void info(String format, Object arg);
boolean isWarnEnabled();
void warn(String message);
void warn(String format, Object arg);
boolean isErrorEnabled();
void error(String message);
void error(String format, Object arg);
}