javalogging.pdf

(188 KB) Pobierz
623020556 UNPDF
Java Logging
Sang Shin
Java Technology Architect
Sang Shin
Java Technology Architect
Sun Microsystems, Inc.
Sun Microsystems, Inc.
sang.shin@sun.com
sang.shin@sun.com
www.javapassion.com
www.javapassion.com
623020556.002.png
Topics
What is and Why Java logging?
Architecture of Java logging framework
Logging example
Logging levels
Loggers
Handlers
Formatters
Configuration
Logging and performance
2
623020556.003.png
What is & Why
Java Logging API?
What is & Why
Java Logging API?
623020556.004.png
What is a Java Logging API?
Introduced in package java.util.logging
The core package includes support for delivering
plain text or XML-formatted log records to memory,
output streams, consoles, files, and sockets. In
4
addition, the logging APIs are capable of interacting
with logging services that already exist on the host
operating system.
623020556.005.png
Why Use Java Logging API?
Facilitate software servicing and maintenance at
customer sites by producing log reports suitable for
analysis by end users, system administrators, field
service engineers, and software development teams
> Capture information such as security failures, configuration
errors, performance bottlenecks, and/or bugs in the
application or platform
5
623020556.001.png
Zgłoś jeśli naruszono regulamin