Hayato Imai > Mojolicious-Plugin-Webtail-0.02 > Mojolicious::Plugin::Webtail

Download:
Mojolicious-Plugin-Webtail-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.02   Source   Latest Release: Mojolicious-Plugin-Webtail-0.06

NAME ^

Mojolicious::Plugin::Webtail - display tail to your browser

SYNOPSIS ^

  use Mojolicious::Lite;
  plugin( 'Webtail', file => "/path/to/logfile", webtailrc => '/path/to/webtail.rc' );
  app->start;

  or

  > perl -Mojo -e 'a->plugin("Webtail", file => "/path/to/logfile", webtailrc => "/path/to/webtail.rc")->start' daemon

  or

  > tail -f /path/to/logfile | perl -Mojo -e 'a->plugin("Webtail", webtailrc => "/path/to/webtail.rc")->start' daemon

  and access "http://host:port/webtail" in your web browser.

DESCRIPTION ^

Mojolicious::Plugin::Webtail is display tail to your browser by WebSocket.

METHODS ^

Mojolicious::Plugin::Webtail inherits all methods from :<Mojolicious::Plugin>.

OPTIONS ^

Mojolicious::Plugin::Webtail supports the following options.

file

displays the contents of file or, by default, its STDIN.

webtailrc

define your custom callback in webtail file.

the code in webtail file is executed when a new line is inserted.

AUTHOR ^

hayajo <hayajo@cpan.org>

SEE ALSO ^

https://github.com/r7kamura/webtail

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: