public enum LoggerProvider extends java.lang.Enum<LoggerProvider>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static java.util.logging.Logger |
getBrowserLogger()
Returns Browser Logger which is used to log browser info, debug and error messages.
返回浏览器记录器,该记录器用于记录浏览器信息,调试和错误消息。 |
static java.util.logging.Logger |
getChromiumProcessLogger()
Returns Chromium Process Logger which is used to log messages that are come from Chromium process.
返回Chromium Process Logger,用于记录来自Chromium进程的消息。 |
static java.util.logging.Logger |
getIPCLogger()
Returns IPC (Inter-Process Communication) Logger which is used to log IPC messages.
返回用于记录IPC消息的IPC(进程间通信)记录器。 |
static void |
setLevel(java.util.logging.Level newLevel)
Sets the log level specifying which message levels will be logged by all JxBrowser loggers.
设置日志级别,指定所有JxBrowser记录器将记录哪些消息级别。 |
static LoggerProvider |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static LoggerProvider[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final LoggerProvider INSTANCE
public static LoggerProvider[] values()
for (LoggerProvider c : LoggerProvider.values()) System.out.println(c);
public static LoggerProvider valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null
public static java.util.logging.Logger getBrowserLogger()
public static java.util.logging.Logger getIPCLogger()
public static java.util.logging.Logger getChromiumProcessLogger()
public static void setLevel(java.util.logging.Level newLevel)
Level.OFF
can be used to turn off logging.
newLevel
- the new value for the log level (may be
null
).
-日志级别的新值(可能是)。