Overview:
Part 1th Creating a Logger object
2nd level of Log
Part 3rd Handler
Part 4th Formatter
Part 5th Customization
The hierarchical relationship of the 6th part of Logger
Reference
Part 1th Creating a Logger object
To use the J2SE logging function, first obtain the Java.util.logging.Logger instance, which can be obtained through the two static GetLogger () methods of the Logger class:
Static Logger GetLogger (String name) to Find or create a Logger. static Logger GetLogger (string name, String resourcebundlename) finds or creates a Logger for the specified subsystem.
Note: Name is logger, and when the name is the same, only one of the logger of the same name is created.
Here's a simple example:
2nd level of Log
Part 3rd Handler 4th part formatter 5th section Customizing the hierarchy relationship of the 6th part logger
Reference:
Java.util.logging.Logger use of the detailed