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 29.543.202 Times

Log::Delimited 0.90

  Date Added: August 05, 2010  |  Visits: 691

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
USER REVIEWS
More Reviews or Write Review


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  
Modules  -  DMWebwork Admin Tipbar 1.3
DMWebwork Admin Tips is a simple administrative module that displays tips based on useful categories. Tips are updated on a regular basis with articles, guides, and useful links.Features: * Beginner Tips * Advanced Tips * Administrator Tips *...
10 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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB