Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. using log4net with custom database logger

using log4net with custom database logger

Scheduled Pinned Locked Moved C#
databasedesignquestionworkspace
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SASS_Shooter
    wrote on last edited by
    #1

    I have a database design for logging errors including program name, method name, all parameters passed to the method, and all parameters passed in a database call. We are using CommonLogging for some of our log calls that will bind to log4net for the log functions. I have read tutorials and documentation indicating I can pass individual fields that are custom to the program. But they are all for a flat logging record, not deep for posting parameters. What I'd like to do is configure log4net to call a custom logger passing my parameters to it, and doing the database writes. Does anyone know if this is possible with the log4net configuration or not?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups