Each one is for a different "application" we have in the Partition and they write to different text/log files. One is a generic trace handler that is used in common / shared server side components such as our LDAP Functions.
I declare the handlers in the component (such as a Server Module) in application scope as such:
Code: Select all
define_com class(#PTOServerTraceHandler) scope(*APPLICATION)Debugging BOTH handlers, show both are getting initialized BUT ALL trace messages are going to the generic handler instead of the handler that was declared in the component.
Further debugging shows that the handler declared in the Server Module is initialized first and the generic handler in the Function is initialized second.
I would expect that the trace messages in the Server Module would go to the handler declared in the Server Module and that trace messages declared in the Function would go to the handler declared in the Function, but this makes me think that the "last one initialized wins?"
Anybody else experience this? Is there anyway to get this to work as described or am I stuck with only one trace handler?