Hi,
I need a logging level that is between Info and Debug. For example, I
have a process that runs and I need to log the details of the process using Info
(ex. What records were updated for Sarbanes Oxley requirements). However, I
also need to log summary information such as how many records were updated,
how many of a particular action were taken during that run, etc. The summary
information would be emailed or stored separately but I do not want to
include the detailed info entries in that email.
The LevelMap property of the LoggerReporitory seems to provide a place
where additional Levels could be mapped, but the ILog interface doesn't provide
specific methods or a generic Log(lvl as Level, message) method.
How can I used the additional levels like FINE, FINER, Trace etc. when ILog
does not provide a way to create a logentry at those levels?
I need a logging level that is between Info and Debug. For example, I
have a process that runs and I need to log the details of the process using Info
(ex. What records were updated for Sarbanes Oxley requirements). However, I
also need to log summary information such as how many records were updated,
how many of a particular action were taken during that run, etc. The summary
information would be emailed or stored separately but I do not want to
include the detailed info entries in that email.
The LevelMap property of the LoggerReporitory seems to provide a place
where additional Levels could be mapped, but the ILog interface doesn't provide
specific methods or a generic Log(lvl as Level, message) method.
How can I used the additional levels like FINE, FINER, Trace etc. when ILog
does not provide a way to create a logentry at those levels?
The only other thing I can think of is to create a separate logger prefixing my type names with "Application." which would allow me to potentially use warn to log summary information and info to log detail information. It seems more obtrusive this way through both in code and configuration.
Why doesn't ILog support a method like log(lvl as Level, message)? Wouldn't this provide more flexibility?
Much appreciated,
Rich
Much appreciated,
Rich
