Skip to main content

daravel_log_viewer 1.25.0 copy "daravel_log_viewer: ^1.25.0" to clipboard
daravel_log_viewer: ^1.25.0 copied to clipboard

A log viewer page for Daravel. Reads log files from their end in constant memory, filters and follows them live, masks secrets. Daravel and Laravel log formats.

Daravel

daravel_log_viewer #

English · Bahasa Indonesia

A log viewer page for Daravel, served by your application: the newest entries first, level and text filters, stack traces, and new entries live over server-sent events. Files are read from their end, so the last 50 entries of a 500 MB log come back in under a millisecond.

dart pub add daravel_log_viewer
import 'package:daravel_log_viewer/daravel_log_viewer.dart';

Application createApp() => Application.configure(basePath: '.')
    .withLogViewer(middleware: ['auth', 'can:view-logs'])
    // ...
    .create();
// https://your-app/log-viewer
  • Reads Daravel's daily JSON logs and Laravel's Monolog files (laravel.log), multi-line stack traces included.
  • Pages back through a file of any size in constant memory; searches stop after a set amount of the file and offer to read on.
  • Hides secrets (password, token, authorization, ...) in context and text; opens only .log files of its folder; a page with a nonce-based Content-Security-Policy and no external assets; 403 outside local until it is given middleware.
  • Download and (opt-in) delete; a JSON API for tools.

Documentation: https://github.com/daravel-dev/daravel/blob/main/docs/guide/log-viewer.md.

License and trademarks #

MIT. "Laravel" is a trademark of Laravel Holdings Inc.; "Dart" is a trademark of Google LLC. Daravel is an independent project, not affiliated with or endorsed by either.

0
likes
160
points
565
downloads

Documentation

Documentation
API reference

Publisher

verified publisherframework.daravel.dev

Weekly Downloads

A log viewer page for Daravel. Reads log files from their end in constant memory, filters and follows them live, masks secrets. Daravel and Laravel log formats.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#logging #observability #dashboard #server

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

daravel, path

More

Packages that depend on daravel_log_viewer