angel_diagnostics 1.0.2 copy "angel_diagnostics: ^1.0.2" to clipboard
angel_diagnostics: ^1.0.2 copied to clipboard

Support for diagnostics within the Angel framework.

diagnostics #

Support for logging and diagnostics within the Angel framework.

For accuracy, these plugins must be called after all other plugins are configured. The best way to ensure this would be to call it right before server startup:

app.justBeforeStart.addAll([
  logRequests(...),
  profileRequests(...)
]);

Logging Requests #

logRequests

This plug-in lets you log requests, responses and errors (optionally to a log file), and also displays how much time (in milliseconds) it took to handle a request.

It also injects a Logger singleton into your application.

Profiler #

profileRequests

This plug-in automatically prints profiling information on each request.

profile(name)

This middleware adds another label to the running profiler, if any. This makes it easy to detect application bottlenecks.

Both automatically turn themselves off in production mode. Use force to prevent this.

Usage #

See the examples.

0
likes
25
pub points
0%
popularity

Publisher

unverified uploader

Support for diagnostics within the Angel framework.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

angel_framework, console, fnx_profiler, logging

More

Packages that depend on angel_diagnostics