Tutorial by Examples

public class MyClass { public void foo() { Logger logger = Bukkit.getLogger(); logger.info("A log message"); logger.log(Level.INFO, "Another message"); logger.fine("A fine message"); // logging an exception try { ...
Java Logging Api has 7 levels. The levels in descending order are: SEVERE (highest value) WARNING INFO CONFIG FINE FINER FINEST (lowest value) The default level is INFO (but this depends on the system and used a virtual machine). Note: There are also levels OFF (can be used to turn log...

Page 1 of 1