=for comment POD_DERIVED_INDEX_GENERATED The following documentation is automatically generated. Please do not edit this file, but rather the original, inline with Tickit::Widget::LogAny at lib/Tickit/Widget/LogAny.pm (on the system that originally ran this). If you do edit this file, and don't want your changes to be removed, make sure you change the first line. =cut =head1 NAME Tickit::Widget::LogAny - log message rendering =head1 VERSION version 0.005 =head1 SYNOPSIS #!/usr/bin/env perl use strict; use warnings; use Tickit; use Tickit::Widget::LogAny; use Log::Any qw($log); my $tickit = Tickit->new( root => Tickit::Widget::LogAny->new( stderr => 1, ) ); print STDERR "print to STDERR\n"; printf STDERR "printf(...) to %s", 'STDERR'; warn "a warning\n"; warn "a warning with no \\n"; $log->trace('trace message'); $log->info('info message'); $log->debug('debug message'); $log->notice('notice message'); $log->warn('warn message'); $log->error('error message'); $log->critical('critical message'); $tickit->run; =head1 DESCRIPTION Provides basic log rendering, with optional C / C capture. =begin HTML

Basic rendering:

Log::Any output displayed in Tickit widget

Stack trace popup:

Log message with stack trace popup display using Tickit desktop layout

=end HTML Activating any line in the list of log messages (typically by pressing C) will show the stack trace for that entry. Use the OK button to close (typically by pressing C, then C). =head1 METHODS =head2 new Takes the following named parameters: =over 4 =item * warn - if true, will install a handler for warn() =item * stderr - if true, will install a handler for all STDERR output =item * scroll - if true (default), will attempt to scroll the window on new entries =item * max_entries - will limit the number of entries we'll store, default is 5000, set to 0 for no limit =back =head1 SEE ALSO =over 4 =item * L =item * L =item * L =back =head1 INHERITED METHODS =over 4 =item L L, L, L, L, L, L, L, L, L =item L L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L, L =back =head1 AUTHOR Tom Molesworth =head1 LICENSE Copyright Tom Molesworth 2014-2015. Licensed under the same terms as Perl itself.