catchpoint / WebPageTest.agent

Cross-platform WebPageTest agent
Other
213 stars 138 forks source link

internal.debug.trace module & logging.trace #549

Closed sammeboy635 closed 1 year ago

sammeboy635 commented 2 years ago

Adding logging.trace in using internal.debug. Trace can be called from global logger and has all the attributes like any other attribute (debug, critical, info). The tracing points in the code will be added in a later PR but currently -vvvvv does change the logging output to be more verbose in stdout. It doesn't affect any of the other logging settings (-vvvv and lower).

logging.trace is meant for determining timings throughout the code as well as be informative on when certain parts of the code execute.

mjkozicki commented 1 year ago

Closing for another approach on logging. @sammeboy635 See https://github.com/catchpoint/WebPageTest.agent/pull/638