Multiple targets, Differnet log levels
I'm trying to log to 3 different targets; File, Console, and EventLog.
if i use the simpler configuration, and a bunch of Split-targets, it would be about the same idea as what i'm trying to get at, Except that the SimpleConfig overwrites the other targets each time it's called.
the idea is to have
Console being configurable (ie with a param passed at execution)
EventLog to be hardcoded to only Warning+
and File to be hardcoded to Debug+
I'm aware that is have to set it up programaticlly, and that i have to use the split-target if i expect it to write to more than "the first match". -- but, i'm not finding an easy way to make varying log-levels on each of the log-targets inside fo the split-target.
am i just not looking in the right places?
|