Is it possible to call a TraceListener from my CustomTraceListener?
I have a CustomTraceListener and will buffer log messages. Once the buffer limit is crossed, the message will
be sent to another TraceListener.
Thus suppose I want to send 100 messages at once to a FlatFileTraceListener, I'll keep them in buffer and then
once the threshold is reached they will be sent to the FlatFileTraceListener.
One way is to inherit the FlatFileTraceListener and implement the buffering logic in my Custom Listener. But this
will be specific to FlatFileTraceListener.
Tomorrow if FlatFileTraceListener is replaced by EventLogTraceListener it should work.
The TraceListener name can be sent as a parameter to the CustomTraceListener.
I need pointers to invoke a TraceListener within another tracelistener.
Trying to implement something like this:
Similar to "BufferingForwardingAppender" from Log4Net. I can work out the buffering logic.
I just need inputs on how can call one TraceListener from another?