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
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.