Log::Log4perl::Config::Watch - Detect file changes


NAME

Log::Log4perl::Config::Watch - Detect file changes


SYNOPSIS

    use Log::Log4perl::Config::Watch;
    my $watcher = Log::Log4perl::Config::Watch->new(
                          file            => "/data/my.conf",
                          check_interval  => 30,
                  );
    while(1) {
        if($watcher->change_detected()) {
            print "Change detected!\n";
            sleep(1);
        }
    }


DESCRIPTION

This module helps detecting changes in files. Although it comes with the Log::Log4perl distribution, it can be used independly.

The constructor defines the file to be watched and the check interval in seconds. Subsequent calls to change_detected() will


SEE ALSO


AUTHOR

    Mike Schilli, <log4perl@perlmeister.com>


COPYRIGHT AND LICENSE

Copyright 2003 by Mike Schilli <m@perlmeister.com> and Kevin Goess <cpan@goess.org>.

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

 Log::Log4perl::Config::Watch - Detect file changes