Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.284.798 Times

Log::Delimited 0.90

  Date Added: August 05, 2010  |  Visits: 738

Log::Delimited

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 downloads)

Log::Delimited is a simple module to help log results. SYNOPSIS #!/usr/bin/perl -w use strict; use Log::Delimited; my $log = Log::Delimited->new({ log_cols => [url, step, elapsed], log_info => [http://slap.com/cgi-bin/slow_script, step 1, 99993.0923], })->log; $log->{log_info} = [http://slap.com/cgi-bin/slow_script, step 2, 8.3240]; $log->log; Log is sort of a dumb program that leads to sort of smart stuff. It takes some columns (this, that, else), some data (rulz, rocks!, do something) and a delimiter (|), and makes a file that looks like this this|that|else my_hostname|12342|1000204952|rulz|rocksrocks%21|do+something the first row is a join($delimiter, @column_names), the second (in a little pseudo code) forms @data = ($hostname, $pid, time, $array_ref_of_your_passed_data) then forms the row with join($delimiter, URLEncode(@data)). By the way, you can turn off the hostname, pid and time inclusion, but in most applications, they have come in handy. To turn them off just set which applies from below $self->{no_hostname} = 1; $self->{no_pid} = 1; $self->{no_time} = 1; To turn off Url encoding, just set $self->{no_URLEncode} = 1; In this document, $self is a Log::Delimited object. The log directory is $self->{base_dir} = "/tmp/logs"; $self->{log_dir} ||= "$self->{base_dir}/$self->{log_node}"; Log uses the last part of your script name ($0) for the log_node if you dont pass one. The log file is $self->{log_filename} ||= "$self->{log_dir}/$self->{log_name}"; Log uses the last part of your script name ($0) for the log_name if you dont pass one. Since logs can get to be quite large, you can easily zip, by doing $self->zip; If you have a large log, where size is a bigger issue than speed you can do $self->log_zipped; which will result in just a zipped log file..

Requirements: No special requirements
Platforms: Linux
Keyword: Libraries Log Logdelimited Module Name Programming Script Simple Simple Module
Users rating: 0/10

License: Freeware Size: 4.1 KB
LOG::DELIMITED RELATED
Libraries  -  Module::Starter::XSimple 0.0.1
Module::Starter::XSimple is a Perl module to create XS modules with Module::Starter. Replacement class for Module::Starter::Simple. Can be used in two ways: Using the commandline Pass as an override class to the module-starter script:...
6.14 KB  
Libraries  -  Text::EtText::EtText2HTML 2.2
Text::EtText::EtText2HTML is a Perl module to convert from the simple EtText editable-text format into HTML. SYNOPSIS my $t = new Text::EtText::EtText2HTML; print $t->text2html ($text); or my $t = new Text::EtText::EtText2HTML; print...
143.36 KB  
Modules  -  SMFforum Integration module 6.x-1.23
SMFforum Integration module provides integration with SMF: Simple Machines Forumhttp://www.simplemachines.org/.The following blocks are provided to integrate SMF with your Drupal site:1) SMFforum: Hidden authenticationAllows forum users to login...
20.48 KB  
Network & Internet  -  mod_accounting 0.5
mod_accounting is a simple Apache module that can record traffic statistics (bytes received/sent per request) into a database. Whats New in This Release: - Added a placeholder for user names (%u) to allow for more statistics on the recorded...
10.24 KB  
Network & Internet  -  MyCMS perl module 1.0
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. MyCMS perl module contains Perl object classes to manage the data of MyCMS (such as articles, links, and images). MN::CMS is a perl module that allows you to manage an...
16.38 KB  
Libraries  -  Text::MicroMason::Functions 1.992
Text::MicroMason::Functions Perl module contains Function Exporter for Simple Mason Templates. SYNOPSIS Use the execute function to parse and evalute a template: use Text::MicroMason::Functions qw( execute ); print execute($template,...
69.63 KB  
Libraries  -  AI::NeuralNet::Simple 0.10
AI::NeuralNet::Simple is a simple learning module for building neural nets. SYNOPSIS use AI::NeuralNet::Simple; my $net = AI::NeuralNet::Simple->new(2,1,2); # teach it logical or for (1 .. 10000) { $net->train([1,1],[0,1]);...
17.41 KB  
Libraries  -  Module::Build::Authoring 0.2805
Module::Build::Authoring are authoring Module::Build modules. When creating a Build.PL script for a module, something like the following code will typically be used: use Module::Build; my $build = Module::Build->new ( module_name =>...
184.32 KB  
Scripts  -  Website Builder 1.6
The Website Builder script provides you with all the features you will need to set up your own website, using your own domain name. The script can be added to an already running website, or it can also run on its own. Our script is perfect...
2.97 MB  
Libraries  -  XML::MyXML 0.03
XML::MyXML is a simple XML module. SYNOPSIS use XML::MyXML qw(tidy_xml xml_to_object); my $xml = " Table 10.00 8.50 "; print tidy_xml($xml); my $obj =...
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB