Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8307877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:38:16+00:00 2026-06-08T18:38:16+00:00

My JSF application is deployed with a recent version of Glassfish, using EclipseLink as

  • 0

My JSF application is deployed with a recent version of Glassfish, using EclipseLink as a JPA provider. I wrote a fairly simplistic logging facility that stores log records in the JPA data base. The columns for the Log table includes the timestamp (of course), an enum key field for the log record type, the current User ID, the network address, and a string message.

None of this is broke, so naturally I want to go fix it. (kidding) What I really want to know is am I missing something by not using one of the established logging APIs and packages and using facilities out of Glassfish? I would be interested to learn of any logging perusal and analysis tools I have opted out of by rolling my own. Any commentary would be appreciated.

Update To Question: If I convert to java.util.Logging, is there a path to capturing the log data to my SQL back end? It is very convenient for searching and looking stuff up, and the existing logging facilities seem to be oriented to outputting to text files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:38:17+00:00Added an answer on June 8, 2026 at 6:38 pm

    This question has been rolling around in my head, and – like so many – it just begs further questions. Where to start?

    java.util.logging (j.u.l), commons-logging, Log4J, etc. and all other variants are traditionally oriented (I’m really trying hard not to say intended) towards diagnostic and admin logs. They’re not ideal for application "event" logs – depending on your definition of event. The primary argument behind that statement is that these tools are oriented strictly towards capturing a textual string from the code.

    So, who is your audience?

    If:

    • developers; to help diagnose problems – use j.u.l & family for free-form text categorized as FINE*/TRACE/DEBUG/INFO/WARN/SEVERE
    • admin; to monitor health of the system – use j.u.l & family for free-form text categorized as INFO/WARN/SEVERE.
    • users (to include support-staff); app reports, statistics, etc. Do you need specific columns of data (user name, company, IP addr, action/event, etc). – Build up your own data table, particularly if you want them in real-time.

    If you need more "bandwidth" than a line of text, j.u.l & family are NOT for you.

    Some of the diagnostic-loggers will allow you to create custom categories – I believe Log4J does, for example. Most of the common alternatives don’t (j.u.l specifically does not do it nicely, if at all).

    Final Note

    It’s trivial to capture DB/table driven log detail into a diagnostic logging facility by calling the appropriate log.info() statements, it’s going to be a bit more difficult to go in reverse. Don’t throw away the one out of simple curiosity about the other.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a fairly simple web application deployed in GlassFish 3.0.1. I'm using regular
I have an application developed using Primefaces 2.2.1 and JSF 2.0, deployed on Glassfish
I am developing a JSF application with JPA(EclipseLink 2.0) and Primefaces. I want to
I try to run jsf application in myeclipse using jboss web server and following
i have developed an application using jsf 1.2. it worked fine with apache tomcat
I'm writing an application using Seam 2.2.x which will be deployed on JBoss 5.1.
I have a Web Application deployed to a local Glassfish server which I would
I have a JSF 2.0 application running under Glassfish 3.1.1 and I need to
I have just deployed my first JSF site using eatj.com. I have tested my
We currently maintain a JSF application developed using Netbeans 5.5.1 using the Visual Web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.