类 PluginReport
java.lang.Object
cn.afternode.commons.bukkit.report.PluginReport
A report builder for analysing like CrashReport in Minecraft
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明appendElement(IPluginReportElement element) Append elementbuild()Build to stringsave()Save to ~/reports/report-[DateTime]-[PluginName].txtvoidSave to fileSave to file and print to loggerwithException(String title, Throwable throwable) Append PluginReportAppend PluginInfoElement with default propertiesAppend PluginListElementAppend ServerInfoElement
-
构造器详细资料
-
PluginReport
public PluginReport(org.bukkit.plugin.Plugin plugin) Primary constructor- 参数:
plugin- Generated by
-
-
方法详细资料
-
appendElement
Append element- 参数:
element- Element- 返回:
- This builder
-
withServerInfo
Append ServerInfoElement- 返回:
- This builder
- 另请参阅:
-
withPluginInfo
Append PluginInfoElement with default properties- 返回:
- This builder
- 另请参阅:
-
withPluginList
Append PluginListElement- 返回:
- This builder
- 另请参阅:
-
withException
Append PluginReport- 参数:
title- Titlethrowable- Exception- 返回:
- This builder
- 另请参阅:
-
build
Build to string- 返回:
- Result
-
save
Save to file- 参数:
target- Output file path- 抛出:
IOException
-
save
Save to ~/reports/report-[DateTime]-[PluginName].txt- 返回:
- Output path
- 抛出:
IOException
-
saveAndLog
Save to file and print to logger- 返回:
- Output path
- 抛出:
IOException
-