samedi 25 avril 2015

log4net to sql c# example

I don't know why its so hard to find a simple example but can someone point me to sample c# code w/ sample sql appender code that allows me to save data to a sql database table that takes in a couple simple parameter like a UserID & UserName.

Thanks & that's it.

I found many examples of the DB appender but none w/ the c# code to execute the logging.

Please don't flag this & say it was asked & already point me to a solution that EXCLUDES the the c# code. I'd can use log4net to log to a file but am lost writing the c# code to leverage the appender for a simple table I set up.

Thanks!

Aucun commentaire:

Enregistrer un commentaire