类 PluginLogRecord
- java.lang.Object
-
- java.util.logging.LogRecord
-
- cn.mcres.gyhhy.MXLib.legacy.PluginLogRecord
-
- 所有已实现的接口:
Serializable
public class PluginLogRecord extends LogRecord
- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 PluginLogRecord(LogRecord parent, Plugin plugin, String prefix)Construct a LogRecord with the given level and message values.
-
方法概要
修饰符和类型 方法 说明 LevelgetLevel()StringgetLoggerName()StringgetMessage()Object[]getParameters()PlugingetPlugin()StringgetPrefix()ResourceBundlegetResourceBundle()StringgetResourceBundleName()longgetSequenceNumber()StringgetSourceClassName()StringgetSourceMethodName()intgetThreadID()ThrowablegetThrown()voidsetLevel(Level level)voidsetLoggerName(String name)voidsetMessage(String message)voidsetParameters(Object[] parameters)voidsetResourceBundle(ResourceBundle bundle)voidsetResourceBundleName(String name)voidsetSequenceNumber(long seq)voidsetSourceClassName(String sourceClassName)voidsetSourceMethodName(String sourceMethodName)voidsetThreadID(int threadID)voidsetThrown(Throwable thrown)-
从类继承的方法 java.util.logging.LogRecord
getInstant, getMillis, setInstant, setMillis
-
-
-
-
构造器详细资料
-
PluginLogRecord
public PluginLogRecord(LogRecord parent, Plugin plugin, String prefix)
Construct a LogRecord with the given level and message values.The sequence property will be initialized with a new unique value. These sequence values are allocated in increasing order within a VM.
Since JDK 9, the event time is represented by an
Instant. The instant property will be initialized to the current instant, using the best available clock on the system.The thread ID property will be initialized with a unique ID for the current thread.
All other properties will be initialized to "null".
- 参数:
parent- The parent- 另请参阅:
Clock.systemUTC()
-
-
方法详细资料
-
getPrefix
public String getPrefix()
-
getPlugin
public Plugin getPlugin()
-
getLoggerName
public String getLoggerName()
- 覆盖:
getLoggerName在类中LogRecord
-
setLoggerName
public void setLoggerName(String name)
- 覆盖:
setLoggerName在类中LogRecord
-
getResourceBundle
public ResourceBundle getResourceBundle()
- 覆盖:
getResourceBundle在类中LogRecord
-
setResourceBundle
public void setResourceBundle(ResourceBundle bundle)
- 覆盖:
setResourceBundle在类中LogRecord
-
getResourceBundleName
public String getResourceBundleName()
- 覆盖:
getResourceBundleName在类中LogRecord
-
setResourceBundleName
public void setResourceBundleName(String name)
- 覆盖:
setResourceBundleName在类中LogRecord
-
getSequenceNumber
public long getSequenceNumber()
- 覆盖:
getSequenceNumber在类中LogRecord
-
setSequenceNumber
public void setSequenceNumber(long seq)
- 覆盖:
setSequenceNumber在类中LogRecord
-
getSourceClassName
public String getSourceClassName()
- 覆盖:
getSourceClassName在类中LogRecord
-
setSourceClassName
public void setSourceClassName(String sourceClassName)
- 覆盖:
setSourceClassName在类中LogRecord
-
getSourceMethodName
public String getSourceMethodName()
- 覆盖:
getSourceMethodName在类中LogRecord
-
setSourceMethodName
public void setSourceMethodName(String sourceMethodName)
- 覆盖:
setSourceMethodName在类中LogRecord
-
getMessage
public String getMessage()
- 覆盖:
getMessage在类中LogRecord
-
setMessage
public void setMessage(String message)
- 覆盖:
setMessage在类中LogRecord
-
getParameters
public Object[] getParameters()
- 覆盖:
getParameters在类中LogRecord
-
setParameters
public void setParameters(Object[] parameters)
- 覆盖:
setParameters在类中LogRecord
-
getThreadID
public int getThreadID()
- 覆盖:
getThreadID在类中LogRecord
-
setThreadID
public void setThreadID(int threadID)
- 覆盖:
setThreadID在类中LogRecord
-
-