APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.logger

public final Class SurrogateLogger

extends SimpleConsoleLogger
Class Inheritance
Imports
java.util.function.Function, sun.util.logging.PlatformLogger

A simple console logger used to emulate the behavior of JUL loggers when java.util.logging has no custom configuration. Surrogate loggers are usually only used temporarily, until the LogManager is initialized. At this point, the surrogates are replaced by an actual logger obtained from LogManager.

Field Summary

Modifier and TypeField and Description
private static final PlatformLogger.Level
private static volatile String
Inherited from jdk.internal.logger.SimpleConsoleLogger:
DEFAULT_LEVELDEFAULT_PLATFORM_LEVELlevelnameusePlatformLevel

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv PlatformLogger.Level
public static String
getSimpleFormat(Function<String, String> defaultPropertyGetter)

pack-priv String
public static boolean
public static SurrogateLogger
Inherited from jdk.internal.logger.SimpleConsoleLogger:
getDefaultLevelgetLoggerConfigurationgetNamegetPlatformLevelgetStringisEnabledisLoggableisLoggableloglogloglogloglogloglogplogplogplogplogplogrblogrblogrblogrbmakeSimpleLoggeroutputStreamsetPlatformLevel

Field Detail

JUL_DEFAULT_LEVELback to summary
private static final PlatformLogger.Level JUL_DEFAULT_LEVEL
simpleFormatStringback to summary
private static volatile String simpleFormatString

Constructor Detail

SurrogateLoggerback to summary
pack-priv SurrogateLogger(String name)

Method Detail

defaultPlatformLevelback to summary
pack-priv PlatformLogger.Level defaultPlatformLevel()

Overrides jdk.internal.logger.SimpleConsoleLogger.defaultPlatformLevel.

Annotations
@Override
getSimpleFormatback to summary
public static String getSimpleFormat(Function<String, String> defaultPropertyGetter)
getSimpleFormatStringback to summary
pack-priv String getSimpleFormatString()

Overrides jdk.internal.logger.SimpleConsoleLogger.getSimpleFormatString.

Annotations
@Override
isFilteredFrameback to summary
public static boolean isFilteredFrame(StackWalker.StackFrame st)
makeSurrogateLoggerback to summary
public static SurrogateLogger makeSurrogateLogger(String name)