Trace logging is typically implemented to collect and record information about application failures in test or production environments. Customer support and development personnel use the information that is provided by trace logging to diagnose and solve problems.
When you enable trace logging, trace log entries are written to an output location. When the client application makes requests to the server, the logging mechanism captures information about the request and writes it to some output medium, such as a file or a console.
You can configure the logging environment to capture general information and differing levels of detail, as required to solve the problem. Note that logging is not particularly useful in measuring method durations. The act of logging itself has some performance drag on the system and might skew such measurements. If you need to collect these types of measurements, use other available profiling tools or performance analysis tools that are more suited to the purpose.