diff --git a/Changes b/Changes index 9f9568e..3bcc1f4 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,8 @@ Revision history for File-Syslogger +0.0.2 2021-11-27/09:05 + -Actually update the README. + -Correct switches in POD for the script. + 0.0.1 2021-11-27/09:00 -Initial release. diff --git a/README b/README index 20cbda4..74b1181 100644 --- a/README +++ b/README @@ -1,16 +1,6 @@ File-Syslogger -The README is used to introduce the module and provide instructions on -how to install the module, any machine dependencies it may have (for -example C compilers and installed libraries) and any other information -that should be provided before the module is installed. - -A README file is required for CPAN modules since CPAN extracts the README -file from a module distribution so that people browsing the archive -can use it to get an idea of the module's uses. It is usually a good idea -to provide version information here so that people can decide whether -fixes for the module are worth downloading. - +Tail the specified files and read new lines into syslog. INSTALLATION diff --git a/bin/filesyslogger b/bin/filesyslogger index 1beaa0c..39d0434 100755 --- a/bin/filesyslogger +++ b/bin/filesyslogger @@ -100,27 +100,11 @@ filesyslogger - Tails the configured files and sends it to syslog. =head1 SYNOPSIS -filesyslogger [B<-P> ] [B<-p> ] [B<-f> ] [B<-t> ] [B<-s> ] +filesyslogger [B<-c> ] =head1 FLAGS -=head2 -P - -The program name to use. If not specified, 'fileSyslogger' is used. - -=head2 -p - -The priority to use. If not specified, 'notice' is used. - -=head2 -f - -The facility to use. If not specified, 'daemon' is used. - -=head2 -s - -The socket to use. If not specified, '/var/run/log' is used. - -=head2 -t +=head2 -c This is the config file to use. If not specified, '/usr/local/etc/filesyslogger.toml' is used. @@ -149,6 +133,8 @@ and forward to syslog. It uses the same keys as above, minus 'socket', but with the additional key 'file' for specifying what file. +File rotation is picked up automatically via POE::Wheel::FollowTail. + For priority, below are the various valid values. emerg diff --git a/lib/File/Syslogger.pm b/lib/File/Syslogger.pm index 60fc100..51f6944 100644 --- a/lib/File/Syslogger.pm +++ b/lib/File/Syslogger.pm @@ -13,11 +13,11 @@ File::Syslogger - Use POE to tail a file and read new lines into syslog. =head1 VERSION -Version 0.0.1 +Version 0.0.2 =cut -our $VERSION = '0.0.1'; +our $VERSION = '0.0.2'; =head1 SYNOPSIS @@ -94,6 +94,8 @@ For facility, below are the various valid values. local6 local7 +File rotation should be picked up POE::Wheel::FollowTail. + =cut sub run {