![]() ![]() The higher value indicates higher priorities. Each log level object has an integer value. It shows the rough guide to the importance and urgency of the log message, and also controls the logging details. Return record.getThreadID() "::" record.getSourceClassName() "::" record.getSourceMethodName() "::" new Date(record.getMillis()) "::" record.getMessage() "\n" Public class MyFormatter extends String format(LogRecord record) If you are not sure which appenders to use, it may affect the application's performance. the selection of the appenders depends on the logging requirements. By extending the Handler class or any subclasses (like MemoryHandler, StreamHandler, etc.), we can create our own and also customize the Handler class. In the Java Logging API, the FileHandler and ConsoleHandler are the two handlers provided by default.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |