using log4net with custom database logger
C#
1
Posts
1
Posters
0
Views
1
Watching
-
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?