Custom Trace Listener for Oracle

Topics: Building and extending application blocks, Logging Application Block
May 14, 2010 at 7:12 PM

While creating a Custom Trace Listener, how do I get and use the LogEntry object to easily get the parameter values for Machine Name, Process ID, etc. I do not want to parse a string.

Thanks,

nplumb

May 17, 2010 at 12:11 AM

cast the object parameter ( I think the parameter name is data) to an instance of LogEntry.

LogEntry logEntry = (LogEntry)data;

if(logEntry != null)

{

        //continue processing...

}

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com