Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

log::dispatch::array(3pm) [debian man page]

Log::Dispatch::Array(3pm)				User Contributed Perl Documentation				 Log::Dispatch::Array(3pm)

NAME
Log::Dispatch::Array - log events to an array (reference) VERSION
version 1.001 SYNOPSIS
use Log::Dispatch; use Log::Dispatch::Array; my $log = Log::Dispatch->new; my $target = []; $log->add(Log::Dispatch::Array->new( name => 'text_table', min_level => 'debug', array => $target, )); $log->warn($_) for @events; # now $target refers to an array of events DESCRIPTION
This provides a Log::Dispatch log output system that appends logged events to an array reference. This is probably only useful for testing the logging of your code. METHODS
"new" my $table_log = Log::Dispatch::Array->new(\%arg); This method constructs a new Log::Dispatch::Array output object. Valid arguments are: array - a reference to an array to append to; defaults to an attr on $table_log array This method returns a reference to the array to which logging is being performed. log_message This is the method which performs the actual logging, as detailed by Log::Dispatch::Output. AUTHOR
Ricardo Signes, "<rjbs@cpan.org>" BUGS
Please report any bugs or feature requests through the web interface at <http://rt.cpan.org>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. COPYRIGHT
Copyright 2008 Ricardo SIGNES, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2008-04-29 Log::Dispatch::Array(3pm)

Check Out this Related Man Page

Catalyst::Plugin::Log::Dispatch(3pm)			User Contributed Perl Documentation		      Catalyst::Plugin::Log::Dispatch(3pm)

NAME
Catalyst::Plugin::Log::Dispatch - Log module of Catalyst that uses Log::Dispatch VERSION
This document describes Catalyst::Plugin::Log::Dispatch version 2.15 SYNOPSIS
package MyApp; use Catalyst qw/Log::Dispatch/; configuration in source code MyApp->config->{ Log::Dispatch } = [ { class => 'File', name => 'file', min_level => 'debug', filename => MyApp->path_to('debug.log'), format => '[%p] %m %n', }]; in myapp.yml Log::Dispatch: - class: File name: file min_level: debug filename: __path_to(debug.log)__ mode: append format: '[%p] %m %n' If you use Catalyst::Plugin::ConfigLoader, please load this module after Catalyst::Plugin::ConfigLoader. DESCRIPTION
Catalyst::Plugin::Log::Dispatch is a plugin to use Log::Dispatch from Catalyst. CONFIGURATION
It is same as the configuration of Log::Dispatch excluding "class" and "format". class The class name to Log::Dispatch::* object. Please specify the name just after "Log::Dispatch::" of the class name. format It is the same as the format option of Log::Dispatch::Config. DEPENDENCIES
Catalyst, Log::Dispatch, Log::Dispatch::Config AUTHOR
Shota Takayama "<shot[at]bindstorm.jp>" LICENCE AND COPYRIGHT
Copyright (c) 2006, Shota Takayama "<shot[at]bindstorm.jp>". All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. perl v5.14.2 2012-04-15 Catalyst::Plugin::Log::Dispatch(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Array Retrieval Formatting

I have a shell script (Solaris v8 ksh) loading an array from a flat file. An exaple of that flat file is below. It contains white-spaces, and carrage returns. When I try to load the first line as a variable, it (the variable) shows up as the first field not the first line. How do you arrange an... (9 Replies)
Discussion started by: gozer13
9 Replies

2. UNIX for Advanced & Expert Users

faster way to loop?

Sample Log file IP.address Date&TimeStamp GET/POST URL ETC 123.45.67.89 MMDDYYYYHHMM GET myURL http://ABC.com 123.45.67.90 MMDDYYYYHHMM GET myURL http://XYZ.com I have a very huge web server log file (about 1.3GB) that contains entries like the one above. I need to get the last entries of... (9 Replies)
Discussion started by: tads98
9 Replies

3. Solaris

Array's example

Array's example :) Hi all, Since Iam learning the usage of Unix scripting, can any one provide some array examples (Simple to complex)? With Regards, Love (Jennifer) (5 Replies)
Discussion started by: Love
5 Replies

4. Shell Programming and Scripting

Store values in an Array

Hi all. Well, I have the next code: I need to make an array with the values I have in the bucle, but just don't get it... Question is, how can I store in an array that values, and how can I display them with echo? (8 Replies)
Discussion started by: crcbad
8 Replies

5. UNIX for Dummies Questions & Answers

Console Log in..

Hi, Can anubody tell me how to log in to a remote server through console? Your help is appreciated.. (5 Replies)
Discussion started by: Amol21
5 Replies

6. Shell Programming and Scripting

Array manipulation in perl

hi all, i am trying to append the output of a find command (for different paths)in an array as below... my $res_array; $i=0; $dir="/orn/ops/regs"; foreach $block("am","xb"){ $bdir="$dir/$block"; $res_array=`find $bdir ! -user mainuser -printf \"\%u \%h\\n\"`; $i++; } i... (6 Replies)
Discussion started by: saapa
6 Replies

7. Shell Programming and Scripting

Array reference problem

i have a variable MYHOST that has my host name.depending on the host i have an array like A_<hostname>.Everytime i need to append the hostname to A_ to get the array.but in the shell script i am nt able to access the members of that array. code of what i hav done: export temp=A_$MYHOST for... (15 Replies)
Discussion started by: niteesh_!7
15 Replies

8. UNIX for Dummies Questions & Answers

Script For Deleting Contents of "Live" Log File

In our shop, we have a situation where a log file from our interface engine software has begun maxing out in file size (reaching the 32-bit "2147483647" limit). Currently, the only way to rectify this is to stop the interface and restart it, which generates a new log. Easy enough, but the... (6 Replies)
Discussion started by: rjhjr64
6 Replies

9. Shell Programming and Scripting

Help with manipulating Array in Perl

I am new in perl .... I defined Array in Perl which contain values as below: Array name: @TEST sample values : when I print Array: print " @test \n"; <title>0008857661</title> <title>0009841171</title> <title>0010161261</title> <title>0010230023</title> I want to get only these... (7 Replies)
Discussion started by: gdubey
7 Replies

10. Solaris

StorageTek 2540 SAN array

Bought a Sun StorageTek 2540 SAN array a few years ago from a company that was going out of business. When we first set it up, we were able to get all the software (Common Array Manager) and firmware directly from Sun. We just upgraded the drives, but the array is too large for the firmware. Now... (6 Replies)
Discussion started by: edison303
6 Replies

11. Solaris

Storage Array not readable

Hi We have an array connected to the machine but when i issue format command i dont see it. But the array is up and running and there are no warning lights. Is there a way to find that array from the OK boot prompt? Please advise. Thanks (9 Replies)
Discussion started by: prash358
9 Replies

12. Shell Programming and Scripting

Syntax error near unexpected token '('

I tried to execute the code but I got this error ./Array.c: line 9: syntax error near unexpected token '(' ./Array.c: line 9: ' nvals = get_data(a,MAXARRAY);' and #include<stdio.h> #define MAXARRAY 1000 main() { int a, nvals; nvals =... (7 Replies)
Discussion started by: sgradywhite
7 Replies

13. Shell Programming and Scripting

Passing argument 1 of 'scanf' makes po

$ cc Array.c Array.c: In function ‘main’: Array.c:23: warning: passing argument 1 of ‘scanf’ makes po Array.c:25: error: expected expression before ‘return’ Array.c:29: error: expected expression before ‘return’ Array.c: At top level: Array.c:44: error: expected ‘)’ before ‘&’ token... (8 Replies)
Discussion started by: sgradywhite
8 Replies

14. Shell Programming and Scripting

Arrays in awk

Array A contains lines of numbers from files. Array B contains number of fields for each line of each file. I want to run on array A. To do that I need to know the number of fields for each file in array A (because each line doesn't have the same NF). The NF is in array B, problem is: I don't... (6 Replies)
Discussion started by: guitarist684
6 Replies

15. Programming

Array Elements Check

Hi everyone, :) I'm trying to make a simple C program that scans an array of chars to see if its elements are similar. I can't understand what's wrong. Could you help me to fix this? Here is the code. Thanks! #include<stdio.h> int main() { int arr; int i, len; int flag =... (10 Replies)
Discussion started by: IgorGest
10 Replies