Like we expose logger and notifier we should also expose a profiler and use a profiler done here https://github.com/dial-once/service-devices/issues/170
Tee profiler should log in specific format including a timestamp, loglevel and etc. Basically have the same options for enabling and disabling and using logging formatting from #21 with a prefix of [Profiler] and there is no log level here.
So, a sample profiler output would be:
[Profiler] [2017-01-23T11:01:41.066Z:PRODUCTION:5445-a5-72a] [device:screen:is-outdated] sid=2xcvVd7-2zd7-2487hzubf-bzd2 screenId=15, durationMs=10
Like we expose logger and notifier we should also expose a profiler and use a profiler done here https://github.com/dial-once/service-devices/issues/170
Tee profiler should log in specific format including a timestamp, loglevel and etc. Basically have the same options for enabling and disabling and using logging formatting from #21 with a prefix of [Profiler] and there is no log level here.
So, a sample profiler output would be: