Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support timing and profiling #5

Open
mperdeck opened this issue Mar 8, 2014 · 0 comments
Open

Support timing and profiling #5

mperdeck opened this issue Mar 8, 2014 · 0 comments

Comments

@mperdeck
Copy link
Owner

mperdeck commented Mar 8, 2014

Add capability to loggers to start and end a timing block.
The loggers at each end of the block will have the same name (creating the association between the two).
In console appender, they create a group, to make it easy to see the timing block.

In console appender, where possible they do profiling (console.profiling, avail on firebug)

Opion to always send the time elapsed, or to only send message on timeout (took too long).

Something like
JL().info().startTimer()
...
JL().info("time taken by ... is").sendElapsedTime()

or

JL().info().startTimer()
...
JL().error("time taken by ... is too long:").sendTimeOut(timeOutInMs: int)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant