Abgeschickt von Danko am 13 Januar, 2006 um 09:09:46:
Antwort auf: Loging to db fields other then the defaults von Eitan Ben Noach am 11 Januar, 2006 um 12:05:38:
MDC would do.
You are not limited to 2 or 3 columns. Define as many as you like in the database, and configure each one as you require:
insert into ... mdc, mdc2, mdcx, ... values @MDC:key1@, @MDC:key2@, @MDC:keyx@, ...
: Hi,
: Using the log functions of the JDBCAppender, I would like to save to the database some information specific to the module i'm logging. I want that info would be logged into fields in the table I've defined before, an I don't want it to be part of the message itself.
: Is there any way to do it with JDBCAppender?
: I understand that the SQL statement contons only predefined columns that their values are supplied by the JJDBCAppender and by the user that uses the log functions
: Thanks,
: Eitan