in reply to Polling a file for changes - Best Practices?

websocket alternative: https://metacpan.org/pod/distribution/Mojolicious/lib/Mojolicious/Guides/Cookbook.pod#EventSource-web-service https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
  • Comment on Re: Polling a file for changes - Best Practices?

Replies are listed 'Best First'.
Re^2: Polling a file for changes - Best Practices?
by Tommy (Chaplain) on Mar 04, 2020 at 23:20 UTC

    I thought about this approach, (hooking into log events), but it doesn't capture the output of warn() or die() ... only what gets sent to app->log->debug()

    Tommy
    A mistake can be valuable or costly, depending on how faithfully you pursue correction