APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.slf4j.internal

public Class Logger

extends Object
Class Inheritance
Imports
java.security.AccessController, .PrivilegedAction, java.util.logging.Level

Field Summary

Modifier and TypeField and Description
private final Logger
private static final StackWalker
WALKER

StackWalker to find out the caller of this class so that it can be shown in the log output.

Constructor Summary

AccessConstructor and Description
public
Logger(String name)

Method Summary

Modifier and TypeMethod and Description
private static String
addIndex(String s)

Translate the log4j message format "Hello {}, {}" to the java.util.logging format "Hello {0}, {1}".

public void
public void
public void
debug(String s, Object... o)

public void
public void
public void
error(String s, Object... o)

public boolean
public boolean
private void
log0(Level level, String s)

private void
log0(Level level, String s, Throwable e)

private void
log0(Level level, String s, Object... o)

public void
public void
public void
public void
warn(String s, Object... o)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

implback to summary
private final Logger impl
WALKERback to summary
private static final StackWalker WALKER

StackWalker to find out the caller of this class so that it can be shown in the log output. The multiple private log0() methods below skip exactly 2 frames -- one log0() itself, the other one of the public debug()/warn()/error()/trace() methods in this class -- to find the caller.

Annotations
@SuppressWarnings:removal

Constructor Detail

Loggerback to summary
public Logger(String name)

Method Detail

addIndexback to summary
private static String addIndex(String s)

Translate the log4j message format "Hello {}, {}" to the java.util.logging format "Hello {0}, {1}".

debugback to summary
public void debug(String s)
debugback to summary
public void debug(String s, Throwable e)
debugback to summary
public void debug(String s, Object... o)
errorback to summary
public void error(String s)
errorback to summary
public void error(String s, Throwable e)
errorback to summary
public void error(String s, Object... o)
isDebugEnabledback to summary
public boolean isDebugEnabled()
isTraceEnabledback to summary
public boolean isTraceEnabled()
log0back to summary
private void log0(Level level, String s)
log0back to summary
private void log0(Level level, String s, Throwable e)
log0back to summary
private void log0(Level level, String s, Object... o)
traceback to summary
public void trace(String s)
warnback to summary
public void warn(String s)
warnback to summary
public void warn(String s, Throwable e)
warnback to summary
public void warn(String s, Object... o)