Chroniton::Event - represents an event to be added to the event log (Chroniton::Messages).
my $log = Chroniton::Messages->new; $log->add(Chroniton::Event->mkdir("dir")); $log->add(Chroniton::Event->copy("foo", "bar/foo")); # etc.
All of the below "methods" actually construct a Chroniton::Event (via Chroniton::Message::_new), suitable for passing to Chroniton::Messages.
Chroniton::Message::_new
Chroniton::Messages
A generic event. Arguemtns are filename (that the event applies to), message, and "event_id", an integer. 10-13 are reserved for the below events (copy, link, delete, mkdir).
A file copy event. Arguments are source filename, destination filename, time elapsed (optional), and bytes copied (optional).
A file symlink event. Arguments are source filename and destination filename.
A file deletion event. Argument is the filename that was deleted.
A directory creation event. Argument is the name of the directory that was created.
To install Chroniton, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chroniton
CPAN shell
perl -MCPAN -e shell install Chroniton
For more information on module installation, please visit the detailed CPAN module installation guide.