Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Developing Web Applications with Oracle ADF Essentials

You're reading from   Developing Web Applications with Oracle ADF Essentials Quickly build attractive, user-friendly web applications using Oracle's free ADF Essentials toolkit

Arrow left icon
Product type Paperback
Published in Aug 2013
Publisher Packt
ISBN-13 9781782170686
Length 270 pages
Edition 1st Edition
Arrow right icon
Toc

Logging in GlassFish


When you deploy your application to GlassFish, your log statements are written to the server.log file. You can view this file from the GlassFish admin web page (by default running on port 4848) by navigating to Server | View Log Files, or you can just look at the file itself—it's found under your domain, for example, C:\adfessentials\glassfish3\glassfish\domains\domain1\logs\server.log.

Tip

The log lines are rather long—if you want a different format, you can create your own formatter class as described by user Kawo on the site Stack Overflow:

http://stackoverflow.com/questions/9609380/glassfish-3-how-do-you-change-the-default-logging-format

You can also redirect your log output to a syslog service as described by Markus Eisele on his blog:

http://blog.eisele.net/2012/07/glassfish-operations-log-notifications.html

GlassFish logging can be controlled by changing the logging.properties file in the config directory in your domain, for example, C:\adfessentials\glassfish3...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime