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

  • SEARCH
  • Home
  • 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 896635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:45:33+00:00 2026-05-15T14:45:33+00:00

Hi everyone, I’m trying to make my application support Logging but I’m very new

  • 0

Hi everyone,

I’m trying to make my application
support Logging but I’m very new at
this approach.

  • I were going to add new tables to my database for each table that i want
    to support logging to it and then deal
    wit that by my DAL “EF in my
    approach”. But this will make me add a
    lot of work to both DB and DAL.

  • So i wonder if there is an easier way to do this ?? I don’t know maybe
    something like “Log Provider” or SQL
    Server Triggers or something ??

please support me with your advices even in general ideas about support
logging.

…

Edit1:

For example suppose that I’ve “Persons” table and “Person” Model i want to support logging to my person table so i want to know when and what happened to some person data at specific time. I hope the point is clear !.

.

Edit2:

Sorry for my blind and not clear question but i just realize that the Triggers is just the best way to do what i want to do.

sorry again ;}

  • 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-15T14:45:34+00:00Added an answer on May 15, 2026 at 2:45 pm

    I’m currently working on an ASP.NET MVC application. This provides the ability to add custom filters to action methods. These are attribute classes inheriting from System.Web.Mvc.ActionFilterAttribute.

    I simply decorate any action method I wish to log (or the controller class for all methods) with something like ‘[Log(LogLevel.High)]’. The LogAttribute class which provides this has a dependancy on my interface ILoggingProvider which contains a Write method (the concrete implementation logs to database). I handle the OnActionExecuted event in the LogAttribute class and use the eventargs to construct the data to pass to the Write method. If you wanted to log results too you could also log the OnResultExecuted event.

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

Sidebar

Related Questions

everyone! new to here and been pondering about this myself for some times with
Everyone at Class too big and hard to add new features is completely unphased
everyone. I'm new here and this is my first post. I'm creating a simple
Everyone on this site has been very helpful on my schooling of iOS programming,
everyone. I have a string like this String message = This is the new
everyone. I know this is a far treated subject, but I've looked everywhere and
everyone,I am new to PP but got stuck in a problem when importing NumPy
everyone. This is a piece of code from using sqlite in android tutorial: return
everyone! I'm confusing with implementing a piece of code to make work .net data
everyone.I wanna include javascript in the html(webpy templates),but it doesn't work.the javascript code in

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.