NAME

App::Sysadmin::Log::Simple::Twitter - a Twitter-logger for App::Sysadmin::Log::Simple

VERSION

version 0.009

DESCRIPTION

This provides a log method that publishes your log entry to a Twitter feed.

METHODS

new

This creates a new App::Sysadmin::Log::Simple::Twitter object.

You're required to register this application at https://dev.twitter.com, and provide the consumer key, consumer secret, access token, and access token secret. Upon registering the application, get the consumer key and secret from the app details view. To get the access key and secret, click "My Access Token" on the right sidebar.

These data should be placed in a private (chmod 600) file in $HOME/.sysadmin-log-twitter-oauth:

consumer_key        =   ...
consumer_secret     =   ...
oauth_token         =   ...
oauth_token_secret  =   ...

Or, you can provide a different location for the file:

my $logger = App::Sysadmin::Log::Simple::Twitter->new(
    oauth_file => '/etc/twitter',
);

log

This tweets your log message.

AVAILABILITY

The project homepage is http://p3rl.org/App::Sysadmin::Log::Simple.

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/App::Sysadmin::Log::Simple/.

SOURCE

The development version is on github at http://github.com/doherty/App-Sysadmin-Log-Simple and may be cloned from git://github.com/doherty/App-Sysadmin-Log-Simple.git

BUGS AND LIMITATIONS

You can make new bug reports, and view existing ones, through the web interface at https://github.com/doherty/App-Sysadmin-Log-Simple/issues.

AUTHOR

Mike Doherty <doherty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Mike Doherty.

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