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 6539571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:52:29+00:00 2026-05-25T10:52:29+00:00

For an Enterprise Application, do you write event/audit records just for auditing and debugging

  • 0

For an Enterprise Application, do you write event/audit records just for auditing and debugging purpose (apart from writing transaction records to DB)?

If you do, do you write them to flat files or directly to DB? or Both? What information do you capture?

  • 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-05-25T10:52:29+00:00Added an answer on May 25, 2026 at 10:52 am

    It completely depends on your business needs. Sometimes businesses have requirements that every single change on every item, by user and time, be recorded. Some require that and that every singe read of the data be logged. Some applications only record when certain data types change. It depends on what you want. Reasonable information captured is: Who, What, When…

    Audit logging is typically not technical in nature, the way print statements would be; you wouldn’t start with audit-logs for debugging purposes, although you could use them if you wanted. But normal application logs are better suited to debugging issues, as they typically contain stack traces and whatnot, while audit logs do not.

    With respect to DB or flat file, again, it depends. Writing to the DB is appealing especially with Hibernate/JPA in that you can hook into the event system of your persistence layer to generate the audit events. It is a quite natural mapping, because Hibernate/JPA have events for ‘save’, ‘update’, ‘delete’ etc, exactly what you want to audit. If requirements call for certain types of users to be able to review the log information, then having the data in the DB is also beneficial. Also, most enterprises back up their date regularly, which also preserves the audit info.

    On the other hand, you can’t beat the simplicity of flat file logging, if you just need to keep a record.

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

Sidebar

Related Questions

I'm developing a Java Enterprise Application which needs to write transaction records either to
We have Enterprise Library 4.1 logging set up to write to the Event Log
I am writing some logs to the event log using the Microsoft enterprise library
I have a maintenance application that has to turn enterprise data (from various databases/tables)
I'm developing an enterprise application whose main purpose is data retrieval. The user enters
I'm currently writing a tool to plug into an existing enterprise application that uses
In Patterns of Enterprise Application Architecture, Martin Fowler writes: This book is thus about
We are building an enterprise application in which we will incorporate multiple platforms for
I have an internal enterprise application I've developed for my company built on .Net
We have a large enterprise application where projects are scoped designed and finally coded

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.