A method and system for tracing components in computer applications is
provided in which trace data from components can be logged in real time.
A hierarchical control interface 209 is used in which leaf nodes 306-311
represent components 204 being traced. The hierarchical control interface
209 includes means for setting trace levels for components 204 being
traced. A non-hierarchical trace system 210 is used for carrying out the
trace processing and includes means 320 for storing trace level settings
received from the hierarchical control interface 209. The trace system
210 also includes means 322 for receiving a call from a component 204
with trace data; means for checking the trace level settings 321 for the
component 204; and means for storing or discarding the trace data
accordingly.