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

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

Serving Software Downloads in 956 Categories, Downloaded 50.328.216 Times

dtRdr::Logger 0.0.11

  Date Added: February 25, 2010  |  Visits: 849

dtRdr::Logger

Report Broken Link
Printer Friendly Version


Product Homepage
Download (93 downloads)

dtRdr::Logger is a Perl module for global logging. SYNOPSIS use dtRdr::Logger; L->debug($message, ...); L->info($message, ...); L->warn($message, ...); L->error($message, ...); L->fatal($message, ...); For a stacktrace: sub bar { L()->logcluck("foo"); } See Log::Log4perl for more info. ABOUT This (currently) installs a $SIG{__WARN__}, though well probably try to move away from that. import dtRdr::Logger->import(@args); Get Logger L A shortcut to return a logger object FOR YOUR NAMESPACE with an optional list of subtags. L($subtag); Example: package My::Package; my $logger = L; my $logger = L(#foo); Now $logger will log into the class log4perl.logger.My.Package.#foo. $subtag MUST start with a #. If this is omitted, it will be changed. RL A shortcut to a root-level logger. RL($tag); my $logger = RL(#foo); Now $logger which will log into the class log4perl.logger.#foo. $tag MUST start with a #. If this is omitted, it will be changed. editor Launches $ENV{THOUT_EDITOR} with a tempfile containing $string. Just a handy way to get some debugging data into an editor. dtRdr::Logger->editor($string); Or, to do lazy evaluation only when needed, pass a sub that returns a string. dtRdr::Logger->editor(sub {do_stuff_that_takes_time()}); DBG_DUMP Similar to editor, but writes to a tempfile in "/tmp/$filename". DBG_DUMP($ENV_NAME, $filename, sub {$content}); Only acts if $ENV{"DBG_$ENV_NAME"} is set. DBG_FOO=1 ./Build test ...will cause this DBG_DUMP(foo, thisfile.txt, sub {$blah}); ...to write the content of $blah to /tmp/thisfile.txt. The sub {$thing} thing is a speed hack, but that variable is big enough to make you want to open it in an editor, so... init dtRdr::Logger->init(filename => "foo");.

Requirements: No special requirements
Platforms: Linux
Keyword: Dbg Dtrdrlogger Dump Editor Env Libraries Logger Message Perl Perl Module Programming Sub
Users rating: 0/10

License: Freeware Size: 2.8 MB
DTRDR::LOGGER RELATED
Libraries  -  Env::Path 0.18
Env::Path is a Perl module with advanced operations on path variables. SYNOPSIS use Env::Path; # basic usage my $manpath = Env::Path->MANPATH; $manpath->Append(/opt/samba/man); for ($manpath->List) { print $_, "n" }; # similar to above...
10.24 KB  
Libraries  -  Mail::Message::Head::FieldGroup 2.069
Mail::Message::Head::FieldGroup is a Perl module with a sub set of fields in a header. INHERITANCE Mail::Message::Head::FieldGroup is a Mail::Reporter Mail::Message::Head::FieldGroup is extended by Mail::Message::Head::ListGroup...
583.68 KB  
Libraries  -  DBIx::XMLMessage 0.05
DBIx::XMLMessage is a Perl module for XML Message exchange between DBI data sources. The package maintains simple XML templates that describe object structure. The package is capable of generating SQL statements based on these templates and...
25.6 KB  
Libraries  -  ebXML::Message 0.03
ebXML::Message is a Perl module to encapsulate an ebMS message. SYNOPSIS use ebXML::Message; # create new message my $message = ebXML::Message->new ( CPAId => http://www.you.org/cpa/123456, Action => NewPurchaseOrder, MessageId => 12,...
14.34 KB  
Libraries  -  Mail::Message::Head::Complete 2.069
Mail::Message::Head::Complete is a Perl module with the header of one message. INHERITANCE Mail::Message::Head::Complete is a Mail::Message::Head is a Mail::Reporter Mail::Message::Head::Complete is extended by...
583.68 KB  
Libraries  -  Mail::Message::Head::SpamGroup 2.069
Mail::Message::Head::SpamGroup is a Perl module which contains spam fighting related header fields. INHERITANCE Mail::Message::Head::SpamGroup is a Mail::Message::Head::FieldGroup is a Mail::Reporter SYNOPSIS my $sg =...
583.68 KB  
Libraries  -  Debug::Message 1.00
Debug::Message is a Perl module that eases the use of debug print with level, indentation and color. SYNOPSIS use Debug::Message; use Log::Dispatch; use Log::Dispatch::Screen; my $dispatcher = Log::Dispatch->new; $dispatcher->add(...
4.1 KB  
Libraries  -  Message::Style 0.002
Message::Style is a Perl module to perform stylistic analysis of messages. SYNOPSIS use Message::Style; my $score=Message::Style::score(@article); # or my $score=Message::Style::score(@article); This Perl library does an analysis of a...
5.12 KB  
Libraries  -  Locale::Messages 1.16
Locale::Messages is a Perl module with Gettext Like Message Retrieval. SYNOPSIS use Locale::Messages (:locale_h :libintl_h); gettext $msgid; dgettext $textdomain, $msgid; dcgettext $textdomain, $msgid, LC_MESSAGES; ngettext $msgid,...
460.8 KB  
Libraries  -  dump_kstat 0.05a
dump_kstat is a Perl module created to dump the kstat structure. This simple script dumps the entire kstat structure to stdout - useful for figuring out what statistics are available. EXAMPLES $ dump_kstat audio.0.audioc0 class = controller...
24.58 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 4.0.0
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