I'm writing into a log file, but I want to log into a table named "Log" in my database.
How can I accomplish this?
I'm writing into a log file, but I want to log into a table named "Log" in my database.
How can I accomplish this?
Check out logging.apache.org for the log4X that fits the language you are using. I know they have log4j (Java) and log4net (C#/.Net). They also have examples on how to configure the logging framework to log to a database table instead of a file.
log4net has an AdoNetAppender, and a sample configuration right here.