@ThreadSafe public abstract class InternalLogFactory extends Object
Constructor and Description |
---|
InternalLogFactory() |
Modifier and Type | Method and Description |
---|---|
static boolean |
configureFactory(InternalLogFactory factory)
Used to explicitly configure the log factory.
|
protected abstract InternalLogApi |
doGetLog(Class<?> clazz)
SPI to return a logger given a class.
|
protected abstract InternalLogApi |
doGetLog(String name)
SPI to return a logger given a name.
|
static InternalLogFactory |
getFactory()
Returns the current default log factory.
|
static InternalLogApi |
getLog(Class<?> clazz)
Returns an SDK logger that logs using the currently configured default
log factory, given the class.
|
static InternalLogApi |
getLog(String name)
Returns an SDK logger that logs using the currently configured default
log factory, given the name.
|
public static InternalLogApi getLog(Class<?> clazz)
public static InternalLogApi getLog(String name)
protected abstract InternalLogApi doGetLog(Class<?> clazz)
protected abstract InternalLogApi doGetLog(String name)
public static InternalLogFactory getFactory()
public static boolean configureFactory(InternalLogFactory factory)
factory
- the log factory to be used internally by the SDKCopyright © 2020. All rights reserved.