![]() |
Bukkit
1.4.7-R1.0
|
The PluginLogger class is a modified Logger that prepends all logging calls with the name of the plugin doing the logging. More...
Inheritance diagram for org.bukkit.plugin.PluginLogger:
Collaboration diagram for org.bukkit.plugin.PluginLogger:Public Member Functions | |
| PluginLogger (Plugin context) | |
| Creates a new PluginLogger that extracts the name from a plugin. | |
| void | log (LogRecord logRecord) |
The PluginLogger class is a modified Logger that prepends all logging calls with the name of the plugin doing the logging.
The API for PluginLogger is exactly the same as Logger.
Definition at line 13 of file PluginLogger.java.
| org.bukkit.plugin.PluginLogger.PluginLogger | ( | Plugin | context | ) |
Creates a new PluginLogger that extracts the name from a plugin.
| context | A reference to the plugin |
Definition at line 20 of file PluginLogger.java.
References org.bukkit.plugin.Plugin.getDescription(), org.bukkit.Server.getLogger(), org.bukkit.plugin.PluginDescriptionFile.getName(), org.bukkit.plugin.PluginDescriptionFile.getPrefix(), and org.bukkit.plugin.Plugin.getServer().
| void org.bukkit.plugin.PluginLogger.log | ( | LogRecord | logRecord | ) |
Definition at line 29 of file PluginLogger.java.
Referenced by org.bukkit.plugin.java.JavaPlugin.saveConfig(), and org.bukkit.plugin.java.JavaPlugin.saveResource().