| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| pack-priv static class | LazyLoggers.
The LazyLoggerAccessor class holds all the logic that delays the creation of the SPI logger until such a time that the VM is booted and the logger is actually used for logging. |
| private static class | LazyLoggers.
This class is used to hold the factories that a Lazy Logger will use to create (or map) its wrapped logger. |
| private static class | LazyLoggers.
An implementation of |
| pack-priv static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final LazyLoggers. | |
| private static final BiFunction | |
| private static volatile System. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static System. | |
| public static final System. | Returns: a (possibly lazy) Logger instance.the logger name name, Module the module on behalf of which the logger is created. module)Returns a (possibly lazy) Logger suitable for system classes. |
| public static final System. | Returns: a (possibly lazy) Logger instance.the logger name name, Module The module on behalf of which the logger is created.
If the module is not loaded from the Boot ClassLoader,
the LoggerFinder is accessed and the logger returned
by module)LoggerFinder#getLogger(java.
is returned to the caller directly.
Otherwise, the logger returned by
getLazyLogger(java.
is returned to the caller.Returns a (possibly lazy) Logger for the caller. |
| pack-priv static System. | Returns: The logger returned by the LoggerFinder.name of the logger name, Module module on behalf of which the logger is created module)Gets a logger from the LoggerFinder. |
| pack-priv static System. |
| factories | back to summary |
|---|---|
| private static final LazyLoggers. | |
| loggerSupplier | back to summary |
|---|---|
| private static final BiFunction<String, Module, System. | |
| provider | back to summary |
|---|---|
| private static volatile System. | |
| LazyLoggers | back to summary |
|---|---|
| private LazyLoggers() | |
| accessLoggerFinder | back to summary |
|---|---|
| private static System. | |
| getLazyLogger | back to summary |
|---|---|
| public static final System. Returns a (possibly lazy) Logger suitable for system classes.
Whether the returned logger is lazy or not depend on the result
returned by | |
| getLogger | back to summary |
|---|---|
| public static final System. Returns a (possibly lazy) Logger for the caller.
| |
| getLoggerFromFinder | back to summary |
|---|---|
| pack-priv static System. Gets a logger from the LoggerFinder. Creates the actual concrete logger. | |
| makeLazyLogger | back to summary |
|---|---|
| pack-priv static System. | |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| private |
| JdkLazyLogger | back to summary |
|---|---|
| pack-priv JdkLazyLogger(String name, Module module) | |
| JdkLazyLogger | back to summary |
|---|---|
| private JdkLazyLogger(LazyLoggers. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final LazyLoggers. | |
| private final BooleanSupplier | |
| private final WeakReference | |
| pack-priv final String | |
| private volatile PlatformLogger. | |
| private volatile System. |
| Access | Constructor and Description |
|---|---|
| private | LazyLoggerAccessor(String name, LazyLoggers.
|
| private | LazyLoggerAccessor(String name, LazyLoggers.
|
| private | LazyLoggerAccessor(String name, LazyLoggers.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv System. | |
| pack-priv System. | getConcreteLogger(BootstrapLogger
This accessor's bootstrap logger (usually this is 'w'). bootstrap)Replace 'w' by the real SPI logger and flush the log messages pending in the temporary 'bootstrap' Logger. |
| pack-priv PlatformLogger. | |
| public String | Returns: The name of the logger that is / will be lazily created.Implements jdk. The logger name. |
| public static LazyLoggers. | Returns: A new LazyLoggerAccessor.The logger name. name, LazyLoggers.The factories that should be used to create the
wrapped logger. factories,The module for which the logger is being created module)Creates a new lazy logger accessor for the named logger. |
| public PlatformLogger. | Returns: A PlatformLogger.Bridge view of the wrapped logger.Implements jdk. A PlatformLogger.Bridge view of the wrapped logger. |
| pack-priv void | release(SimpleConsoleLogger
The temporary logger too be released. temporary, boolean Whether the released logger should be eagerly
replaced. replace)Makes this accessor release a temporary logger. |
| private void | |
| public System. | Returns: the logger SPI object.Implements jdk. Returns the logger SPI object, creating it if 'w' is still null. |
| factories | back to summary |
|---|---|
| pack-priv final LazyLoggers. | |
| isLoadingThread | back to summary |
|---|---|
| private final BooleanSupplier isLoadingThread | |
| moduleRef | back to summary |
|---|---|
| private final WeakReference<Module> moduleRef | |
| name | back to summary |
|---|---|
| pack-priv final String name | |
| p | back to summary |
|---|---|
| private volatile PlatformLogger. | |
| w | back to summary |
|---|---|
| private volatile System. | |
| LazyLoggerAccessor | back to summary |
|---|---|
| private LazyLoggerAccessor(String name, LazyLoggers. | |
| LazyLoggerAccessor | back to summary |
|---|---|
| private LazyLoggerAccessor(String name, LazyLoggers. | |
| LazyLoggerAccessor | back to summary |
|---|---|
| private LazyLoggerAccessor(String name, LazyLoggers. | |
| createLogger | back to summary |
|---|---|
| pack-priv System. | |
| getConcreteLogger | back to summary |
|---|---|
| pack-priv System. Replace 'w' by the real SPI logger and flush the log messages pending in the temporary 'bootstrap' Logger. Called by BootstrapLogger when this accessor's bootstrap logger is accessed and BootstrapLogger notices that the VM is no longer booting.
| |
| getConcretePlatformLogger | back to summary |
|---|---|
| pack-priv PlatformLogger. | |
| getLoggerName | back to summary |
|---|---|
| public String getLoggerName() Implements jdk. The logger name. | |
| makeAccessor | back to summary |
|---|---|
| public static LazyLoggers. Creates a new lazy logger accessor for the named logger. The given factories will be use when it becomes necessary to actually create the logger.
| |
| platform | back to summary |
|---|---|
| public PlatformLogger. Implements jdk. A PlatformLogger.Bridge view of the wrapped logger.
| |
| release | back to summary |
|---|---|
| pack-priv void release(SimpleConsoleLogger temporary, boolean replace) Makes this accessor release a temporary logger.
This method is called
by BootstrapLogger when JUL is the default backend and LogManager
is initialized, in order to replace temporary SimpleConsoleLoggers by
real JUL loggers. See BootstrapLogger for more details.
If Note passing
| |
| setWrappedIfNotSet | back to summary |
|---|---|
| private void setWrappedIfNotSet(System. | |
| wrapped | back to summary |
|---|---|
| public System. Implements jdk. Returns the logger SPI object, creating it if 'w' is still null. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final BiFunction | loggerSupplier
A factory method to create an SPI logger. |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| loggerSupplier | back to summary |
|---|---|
| pack-priv final BiFunction<String, Module, L> loggerSupplier A factory method to create an SPI logger. Usually, this will be something like LazyLoggers::getSystemLogger. | |
| LazyLoggerFactories | back to summary |
|---|---|
| public LazyLoggerFactories(BiFunction<String, Module, L> loggerSupplier) | |
| LazyLoggerFactories | back to summary |
|---|---|
| private LazyLoggerFactories(BiFunction<String, Module, L> loggerSupplier, Void unused) | |
Logger that redirects all calls to a wrapped
instance of Logger.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final LazyLoggers. |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv PlatformLogger. | |
| pack-priv final System. |
| loggerAccessor | back to summary |
|---|---|
| pack-priv final LazyLoggers. | |
| LazyLoggerWrapper | back to summary |
|---|---|
| public LazyLoggerWrapper(LazyLoggers. | |
| LazyLoggerWrapper | back to summary |
|---|---|
| private LazyLoggerWrapper(LazyLoggers. | |
| platformProxy | back to summary |
|---|---|
| pack-priv PlatformLogger. Implements abstract jdk.
| |
| wrapped | back to summary |
|---|---|
| pack-priv final System. Implements abstract jdk.
| |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public PlatformLogger. | Returns: A PlatformLogger.Bridge view of the wrapped logger object.A PlatformLogger.Bridge view of the wrapped logger object. |
| public System. |
| getLoggerName | back to summary |
|---|---|
| public String getLoggerName() The logger name.
| |
| platform | back to summary |
|---|---|
| public PlatformLogger. A PlatformLogger.Bridge view of the wrapped logger object.
| |
| wrapped | back to summary |
|---|---|
| public System. Returns the wrapped logger object. | |