[log4perl-devel] Log::Log4perl 1.48 released

2016-11-14 Thread Mike Schilli
hilli/log4perl/issues/72 *(ms) header_text now works with syswrite (reported by Tom Metro): https://github.com/mschilli/log4perl/issues/73 Enjoy! -- -- Mike Sc

[log4perl-devel] Log::Log4perl 1.47 released

2016-03-18 Thread Mike Schilli
#x27;t be found. *(ms) All hash traversals in Config.pm now done via "sort keys" to make sure we can reliably reproduce potential problems. Enjoy! -- Mike Mike Schilli m...@perlmeister.com -- Transf

Re: [log4perl-devel] Fwd: Stuck on MatchRange

2014-12-24 Thread Mike Schilli
or" ); $log->fatal( "fatal" ); But I had to first fix the strange encoding: perl -p -i -e 's/\xc2\xa0/ /g' scriptname Is this Windows or why are some spaces in your configuration encoded as "c2a0"? -- Mike Mike Schilli m...@perlmeister.com -

[log4perl-devel] Fwd: Stuck on MatchRange

2014-12-24 Thread Mike Schilli
Somehow this got erroneously erased from the moderator list, reposting. -- -- Mike Mike Schilli m...@perlmeister.com James Pittman To: log4perl-devel@lists.sourceforge.net Subject: Stuck on MatchRange Date: Tue, 16 Dec 2014 00:03:23 -0500 Hi, I have the following config file

Re: [log4perl-devel] a quick suggestion

2014-12-14 Thread Mike Schilli
On Thu, 4 Dec 2014, Christopher Collins wrote: I have one small suggestion for the synopsis Makes perfect sense, I've added it: https://github.com/mschilli/log4perl/commit/953797d4bf330f34ca2628a7c24629c330d2f5b6 Thanks for your suggestion! -- -- Mike Mike Schi

[log4perl-devel] Log::Log4perl 1.45 released

2014-10-27 Thread Mike Schilli
https://github.com/mschilli/log4perl/issues/54 Enjoy! -- -- Mike Mike Schilli m...@perlmeister.com -- ___ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net

Re: [log4perl-devel] Optional loggers in config

2014-09-09 Thread Mike Schilli
appenders, making sure that Perl toggles the switch so that your utf8 strings get written out as such. -- -- Mike Mike Schilli m...@perlmeister.com In my log4perl config file I have a very simple screen appender. log4perl.appender.screenAppender = Log::Lo

[log4perl-devel] Log::Log4perl 1.44 released

2014-05-17 Thread Mike Schilli
h has remove_tree() (fixes test suite for ancient perl-5.6.2). * Brian Wightman fixed temporary file cleanup in the test suite for Win32: https://github.com/mschilli/log4perl/pull/45 Enjoy! -- -- Mike Mike Schilli m...@perlmeiste

Re: [log4perl-devel] How to map priority to Tivoli severtiy levels

2014-05-06 Thread Mike Schilli
t;put('sx_Appl', 'BCOM'); Log::Log4perl::MDC->put('sx_Inst', 'AMH'); my $logger = get_logger("Bar::Twix"); $logger->warn("Blah”); -- -- Mike Mike Schilli m...@perlmeister.com The Tivoli log file adapter reads a file where

Re: [log4perl-devel] logcroak not sent to syslog when using Log::Dispatch::Syslog

2014-03-20 Thread Mike Schilli
33) from CPAN, and you're golden. -- -- Mike Mike Schilli m...@perlmeister.com Is there a way to circumvent this or do I oversee anything? Regards Markus _ Dr. Markus Sonderegger Application Integration Bank Julius Baer &

Re: [log4perl-devel] Functionality question

2014-03-16 Thread Mike Schilli
Log::Log4perl::Layout::PatternLayout log4perl.appender.Logfile.layout.ConversionPattern = %d %F{1} %L> %m %n Hope this helps! -- -- Mike Mike Schilli m...@perlmeister.com -- Learn Graph Databases - Download FREE O'Reilly Book "Grap

[log4perl-devel] Log4perl 1.43 released

2014-03-16 Thread Mike Schilli
/pull/39. New FAQ entry on Win32 log file cleanup. Enjoy! -- -- Mike Mike Schilli m...@perlmeister.com -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definiti

Re: [log4perl-devel] Suggested enhancement

2014-02-28 Thread Mike Schilli
environment or package > variable, whether carp or cluck is used to generate any warnings in > order to facilitate problem resolution. That'd be a nice addition to Carp.pm :). -- -- Mike Mike Schilli m...@perlmeister.com --

Re: [log4perl-devel] Usage of easy_init() with multiple definitions

2013-12-23 Thread Mike Schilli
cfa Good enough? -- -- Mike Mike Schilli m...@perlmeister.com -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance

Re: [log4perl-devel] Usage of easy_init() with multiple definitions

2013-12-23 Thread Mike Schilli
On Mon, 23 Dec 2013, Dave Pointon wrote: > Would it be worthwhile to document this 'feature' in order to head off > further such questions? I added this to the FAQ: http://feedproxy.google.com/~r/FatwalletHotDeals/~3/YyseBpP9ZeU/ Good enough? -- -- Mike Mike Schilli m...

Re: [log4perl-devel] Usage of easy_init() with multiple definitions

2013-12-21 Thread Mike Schilli
Hi Dave, you're defining different loggers, but what you really want is define different appenders attached to a single logger. A logger has a category ("" or "main" or "Foo::Bar"), which determines which package namespace to accept messages from, and a set of appenders which it forwards the mess

Re: [log4perl-devel] logwarn() not outputting warnings when logger not enabled

2013-11-05 Thread Mike Schilli
he first place, but install a separate one via perlbrew et al. > I don't see liblog-log4perl-perl on Debian Backports. Later versions of Debian seem to have more up-to-date versions of Log4perl: http://packages.debian.org/sid/liblog-log4perl-perl -- -- Mike Mike Schilli m...@perlmei

[log4perl-devel] Log::Log4perl 1.42 released

2013-07-25 Thread Mike Schilli
line number checks (and coping with 5.19 buggy line numbering, cough, cough). It'll hit CPAN momentarily. Enjoy! -- -- Mike Mike Schilli m...@perlmeister.com -- See everything from the browser to

Re: [log4perl-devel] logger independant from rootLogger

2013-06-06 Thread Mike Schilli
there, I'm sure you'll get what you expect: http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/FAQ.html#a6c81 -- -- Mike Mike Schilli m...@perlmeister.com #!/usr/bin/perl use strict; use warnings; use Log::Log4perl; my $log_conf

Re: [log4perl-devel] Scripting thresholds for mod_perl

2013-05-29 Thread Mike Schilli
tting the appender's threshold when what you really want is setting the logger's level instead. Doesn't  my $logger = Log::Log4perl::get_logger(''); # ... $logger->level( $DEBUG ); do what you have in mind? -- -- Mike Mike Schilli m...@perlmeis

[log4perl-devel] Log::Log4perl 1.41 released

2013-04-21 Thread Mike Schilli
.org 84289] Documented Level.pm's isGreaterOrEqual() comparator. *(ms) [rt.cpan.org #84725] Fixed test suite to allow running tests in parallel via HARNESS_OPTIONS=j10:c HARNESS_TIMER=1. Reported by Brendan Byrd. Enjoy! -- -- Mike

Re: [log4perl-devel] Access to Log::Log4perl::Appender->threshold() should be documented

2013-04-16 Thread Mike Schilli
ps://github.com/mschilli/log4perl/commit/c4d5f2d32095142ca6064d0c9564504fbcd61e1c Thanks for the note! -- -- Mike Mike Schilli m...@perlmeister.com -- Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data.

Re: [log4perl-devel] Log::Log4perl manual page typos

2013-04-11 Thread Mike Schilli
equest [1]! That way, you can directly contribute to the project. But I'll happily apply more fixes manually if you have any! [1] https://help.github.com/articles/using-pull-requests -- -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] articles referred to and URL updates

2013-04-10 Thread Mike Schilli
4perl/ , that need an update: Fixed also: https://github.com/mschilli/log4perl/commit/d863b2c8c3dbce1924ccfb9e78c98f0856b228c5 Thanks for pointing this out. -- -- Mike Mike Schilli m...@perlmeister.com Again Ceki Gülcü's "Short introduction to log4j", and if you wa

Re: [log4perl-devel] Log::Log4perl::Catalyst

2013-03-27 Thread Mike Schilli
RR. If those messages aren't formatted with the Log4perl layout you've specified, it's safe to assume that they're not using Log4perl for those. You might want to ask on the Catalyst forums, I've had good luck with speedy responses in the Freenode #catalyst IRC channel.

Re: [log4perl-devel] Error when re-initializing log4perl

2013-03-18 Thread Mike Schilli
o I can take a look? -- -- Mike Mike Schilli m...@perlmeister.com Marc On Sun, Mar 17, 2013 at 8:32 PM, Mike Schilli wrote: On Sat, 16 Mar 2013, Marc Zampetti wrote: So basically the question I have is that I need to reset and re-configure the log

Re: [log4perl-devel] Structured logging in log4perl

2013-03-17 Thread Mike Schilli
ssage in place, but I agree that the fact that it always produces an array ref isn't helpful. Maybe we need another preprocess hook for appenders in Log4perl. -- -- Mike Mike Schilli m...@perlmeister.com --

Re: [log4perl-devel] Error when re-initializing log4perl

2013-03-17 Thread Mike Schilli
" and "overwrite" the current configuration, which in this case I want. Can you try if calling Log::Log4perl->reset() before calling init() the second time fixes the problem? -- -- Mike Mike Schilli m...@perlmeister.com In the test suite, I hope that helps. On Sat, Mar 1

Re: [log4perl-devel] ::Filter::MDC

2013-01-23 Thread Mike Schilli
our changes and send a pull request. Let me know if you need more detailed instructions. -- -- Mike Mike Schilli m...@perlmeister.com > email address as appender and filter on a MDC value (the support group > which maps to each team). Should I release it to CPAN as separate > di

Re: [log4perl-devel] Log::Log4perl::Catalyst

2013-01-11 Thread Mike Schilli
uot;, 'name' => 'screenlog', 'stderr' => 1, ); -- -- Mike Mike Schilli m...@perlmeister.com -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HT

Re: [log4perl-devel] Introspecting the $logger object for log file path and name?

2012-12-27 Thread Mike Schilli
u need to call init() beforehand. > Also, once I have an $appender object, will ->filename() provide only > the filename, or also its path? You'll get the exact value as specified in the configuration. It could be an absolute path or a relative path or a filename (relative to cwd()).

Re: [log4perl-devel] Introspecting the $logger object for log file path and name?

2012-12-27 Thread Mike Schilli
yway, if you want access to the file appender's filename, you need to change the line > Log::Log4perl->appender_by_name( > 'log4perl.appender.A1.filename'); to something like my $appender = Log::Log4perl->appender_by_name( 'A1' );

[log4perl-devel] Log::Log4perl 1.40 released

2012-11-30 Thread Mike Schilli
to "cygwin" and not to "Win32". Modified check to catch both. * (ms) Fixed unescaped brace in regex that perl 5.17.4 was complaining about. Enjoy! -- -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] Categories - doc/implementation problem ??

2012-11-25 Thread Mike Schilli
or a subclass thereof) return an Log::Log4perl::Logger > object whereas I expected, but could not get, a Foo::Bar or > Foo::Bar::Logger object. Hmm, I didn't quite get what you meant there, can you elaborate on what you're trying to accomplish? -- -- Mike Mike Schilli m...@perlmei

Re: [log4perl-devel] API for fetching the category from a logger?

2012-11-25 Thread Mike Schilli
gger's category, I've added one just now: https://github.com/mschilli/log4perl/commit/67360dc96380a878a267c4f434dd8b6c7d2a4031 To work around the limitation, you can use $logger->{category} till it rolls out with the next release. Thanks for bringing this issue to my attention.

[log4perl-devel] Log::Log4perl 1.39 released

2012-10-27 Thread Mike Schilli
Updated license/copyright/author sections in all files using licensizer and .licensizer.yml. *(ms) Skipped log file recreation test on Win32 as it won't remove busy files anyway. It should soon be available on your local CPAN mirror. Enjoy! -- --

Re: [log4perl-devel] logcroak always stringifies when croak()ing

2012-10-19 Thread Mike Schilli
/33a34e0ea50fc785376abc9456bd7711193ba29e Let me know if it works for you ... -- -- Mike Mike Schilli m...@perlmeister.com Markus -Ursprüngliche Nachricht- Von: Mike Schilli [mailto:m...@perlmeister.com] Gesendet: Donnerstag, 18. Oktober 2012 09:29 An: BENNING, Markus Cc: log4perl-devel

Re: [log4perl-devel] logcroak always stringifies when croak()ing

2012-10-18 Thread Mike Schilli
ns that do just what > the Carp functions do, but with logging:" Fixed! https://github.com/mschilli/log4perl/commit/56c95a2d131678c4908785695fac0e56175c7b44 -- -- Mike Mike Schilli m...@perlmeister.com > I noticed that logcroak (die,confess...) always die()s with > a stringi

Re: [log4perl-devel] Bug: Wrapped logdie reports wrong file/line

2012-09-23 Thread Mike Schilli
t was intentional or not. Yeah, saw that, but the code is sufficiently different and the data structure used for the wrappers is local to the package, so I think it's good enough for now. If you have a patch to integrate it more tightly, by all means, send it, I'll be happy to apply i

[log4perl-devel] Log::Log4perl 1.38 released

2012-09-23 Thread Mike Schilli
undefined message elements before they're assembled in Appender.pm and a warning is issued without a proper code location: https://github.com/mschilli/log4perl/issues/15 *(ms) [rt.cpan.org #78734] Added spell check on filter parameter names Enjoy! -- -- Mike

Re: [log4perl-devel] Bug: Wrapped logdie reports wrong file/line

2012-09-18 Thread Mike Schilli
perl/commit/e258163ef2c219e082419e6158ad6fa96eeebc5d You can download the updated tarball from: https://github.com/mschilli/log4perl/tarball/1.38logdie Would be great if you could give it a whirl, let me know if it's working for you. -- -- Mike Mike Schilli m...@perlmeister.com > around in

Re: [log4perl-devel] Good use of the $logger->log() method

2012-07-08 Thread Mike Schilli
g4perl/commit/b60c85acb482095a5d1939c2a25e64653f3c3624 -- -- Mike Mike Schilli m...@perlmeister.com I have though an issue with one passage in the documentation. In the CPAN page Log::Log4perl (Ver. 1.37) (http://search.cpan.org/~mschilli/Log-Log4perl-1.37/lib/Log/Log4perl.pm) one can read

[log4perl-devel] Log::Log4perl 1.37 released

2012-05-30 Thread Mike Schilli
, updated docs. * (ms) [rt.cpan.org #76827] UTF-8 encoded configuration files are now supported (see Log::Log4perl::Config). * (ms) [rt.cpan.org #77501] Unescaped left brace in regex is deprecated with perl 5.17. Times we live in. Enjoy! -- -- Mike Mike Schilli m

Re: [log4perl-devel] panic in sv_setpvn

2012-04-18 Thread Mike Schilli
uld never be a panic situation, except if there's a bug in perl itself. You might want to write up a reproducable script, and file a bug with perl via perlbug (which adds your complete perl -V build information for reference). -- -- Mike Mike Schilli m...@perlmeister.com > > That lin

Re: [log4perl-devel] change log level in embedded system

2012-04-18 Thread Mike Schilli
and the reset to the old configuration is related to something within the system calling Log4perl's init()? -- -- Mike Mike Schilli m...@perlmeister.com > the reason i'm not using 'init_and_watch()' is b/c we embed the > configuration file inside the code base (which is

Re: [log4perl-devel] change log level in embedded system

2012-04-17 Thread Mike Schilli
system. I wonder why you're not simply using init_and_watch() and modify the external config file to regularly check and reload it? -- -- Mike Mike Schilli m...@perlmeister.com > hello - > > i'm currently running log4perl inside an embedded instance, for all > intents and

Re: [log4perl-devel] appender additivity question

2012-03-06 Thread Mike Schilli
ct! -- -- Mike Mike Schilli m...@perlmeister.com > > if you think there are any issues w/ that approach, please let me know. > > thanks! > > -- > -jae > > > > > On 2/23/12 11:22 PM, "Mike Schilli" wrote: > >> On Thu,

Re: [log4perl-devel] appender additivity question

2012-02-23 Thread Mike Schilli
gt; Foo generates. Sounds like you want to set a threshold, check out this recipe: http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#How_can_I_send_errors_to_the_screen,_and_debug_messages_to_a_file? Let me know if that helps ... -- -- Mike Mike Schilli m...@perlmeister.com

[log4perl-devel] Log4perl 1.36 released

2012-02-21 Thread Mike Schilli
ble decision to add a trailing dot to its messages. Enjoy! -- -- Mike Mike Schilli m...@perlmeister.com -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cl

Re: [log4perl-devel] configuring perl warnings for Log4Perl

2012-01-15 Thread Mike Schilli
ings. Oh, I see, you're talking about Log4perl's Screen appender issuing a Perl warning about wide characters? That's caused by log functions writing messages including utf8 characters and if the appender isn't configured to log in utf8, Perl issues a warning. To fix this, use

[log4perl-devel] Log::Log4perl 1.35 Released

2012-01-03 Thread Mike Schilli
it only if the log level conditions are met. (ms) [rt.cpan.org #73598] Gerda Shank reported test suite problems with DBD::CSV-0.26. Bumped up to DBD::CSV-0.33 if installed. Enjoy! -- -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] logwarn not calling warn if L::L's init not called

2011-12-23 Thread Mike Schilli
ing a problem this morning only to discover this. I >>> find this most worrying as I'd expect the warn to happen whatever. If you >>> substitute logdie for die it seems to work. >>> >>> perl -MLog::Log4perl -le 'print $Log::Log4perl::VERSION;' >&

Re: [log4perl-devel] log4perl buffering with semi persistent scripts

2011-12-06 Thread Mike Schilli
ope that makes sense! -- -- Mike Mike Schilli m...@perlmeister.com I'm using log4perl in FCGI scripts that are semi-persistent, they go up and down depending on load. I have an appender that sends email and I'd like it to be buffered. However if I set it to buffered the emails are never s

Re: [log4perl-devel] logwarn not calling warn if L::L's init not called

2011-11-20 Thread Mike Schilli
WARN. logdie(), on the other hand, will call die() unconditionally, because it's an action, not only a message. -- -- Mike Mike Schilli m...@perlmeister.com > Hi, > > Is this really the intended behaviour: > > perl -w -le 'use strict;use warnings;use Log::Log4perl qw(ge

[log4perl-devel] Log::Log4perl 1.34

2011-11-04 Thread Mike Schilli
! -- -- Mike Mike Schilli m...@perlmeister.com -- RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 ___ log4perl-devel mailing list

Re: [log4perl-devel] Log4perl Wrapper

2011-10-26 Thread Mike Schilli
On Tue, 25 Oct 2011, Mike Schilli wrote: > the delay on this ... this snippet doesn't compile for me > because $cfg isn't defined Gah, I had a missing module, never mind. The wrapper registration seems to work, though, here's the output of the script below: 2011/1

Re: [log4perl-devel] Log4perl Wrapper

2011-10-25 Thread Mike Schilli
class as indicated in the documentation. Sorry for the delay on this ... this snippet doesn't compile for me because $cfg isn't defined ... can you please check if you're missing a piece (please enable use strict/use warnings). -- -- Mike Mike Schilli m...@perlmeister.com   I'm not sure

Re: [log4perl-devel] Log/Log4perl/Appender, uninitialize variable warnings

2011-10-25 Thread Mike Schilli
of email. I'd say that the warning you're seeing is expected. It's consistent with what you'd see with print(), if you try out use warnings; my $a; print "$a\n"; you'll get the same message. And you've enabled warnings, right? :) -- -- Mike Mike Sc

Re: [log4perl-devel] Log::Log4perl best practices

2011-09-28 Thread Mike Schilli
s explained here: http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl.pm#Using_Log::Log4perl_with_wrapper_functions_and_classes -- -- Mike Mike Schilli m...@perlmeister.com > On 09/26/2011 10:14 AM, Mike Schilli wrote: >> Actually, :easy mode macros and get_logger() are iden

Re: [log4perl-devel] Log::Log4perl best practices

2011-09-26 Thread Mike Schilli
like DEBUG and INFO in conjunction with log4perl configuration files, unless for really simple scripts for which easy_init() is more appropriate. -- -- Mike Mike Schilli m...@perlmeister.com > I started with Log4perl a few months ago and wrote some modules that > use Log4perl in easy mod

Re: [log4perl-devel] how to enable/disable appender in config file based on %ENV variable?

2011-09-20 Thread Mike Schilli
Log::Log4perl::Filter manpage explains their use in detail. Hope that helps! -- -- Mike Mike Schilli m...@perlmeister.com > log4perl-devel: > > I'm working on a web application and would like to log TRACE priority > messages related to hits from my development machine (IP addr

Re: [log4perl-devel] Using Log4perl in Strawberry Perl

2011-08-17 Thread Mike Schilli
::File instead? Also, make sure you're using the latest Log4perl from CPAN. -- -- Mike Mike Schilli m...@perlmeister.com The error I get is "undefined value provided for log level at C:/strawberry/perl/site/lib/Log/Log4perl/Appender.pm line 80". I've extracted some lines

Re: [log4perl-devel] Generic message addition?

2011-08-08 Thread Mike Schilli
ertain values via MDC and your Log4perl layout can be configured to display the set value via the %X{name} placeholder in all your messages, without the need to touch the code of the application. Hope that helps. -- -- Mike Mike Schilli

Re: [log4perl-devel] re-init question

2011-08-08 Thread Mike Schilli
on that does both, change the data structure and call init(). If you want to get really fancy, you could offer a tied hash, intercept the STORE function and call init() whenever something changes. Would that work for you? -- -- Mike

Re: [log4perl-devel] Writing to logs with different thresholds

2011-07-29 Thread Mike Schilli
27;re getting instead, I'll take a look. -- -- Mike Mike Schilli m...@perlmeister.com -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll

Re: [log4perl-devel] Writing to logs with different thresholds

2011-07-26 Thread Mike Schilli
On Tue, 26 Jul 2011, Robert Rothenberg wrote: > I've tried changing the threshold for the shared log to INFO > log4perl.appender.SharedLog.Treshold = INFO If you fix the typo ("Treshold" => "Threshold"), that's exactly the recommended way to accomplish what

Re: [log4perl-devel] Having a module inherit log level from caller

2011-07-23 Thread Mike Schilli
you did with the "SCRIPT" logger in Logging.pm). After doing this, you'll see [2011-07-23 19:50:03] script.pl INFO: Calling logTest() [2011-07-23 19:50:03] Package INFO: info message [2011-07-23 19:50:03] Package WARN: warn message [2011-07-23 19:50:03] Package ERROR: e

[log4perl-devel] Log::Log4perl 1.33 Released

2011-06-01 Thread Mike Schilli
/issues/7), so I put on my hazmat suit and cleaned it up. Now perl's garbage collector takes care of disposing of logger and appender carcasses. * (ms) Added Log::Log4perl->remove_logger($logger) to remove a logger from the system. Enjoy! -- Mike Mike Schilli m...@perlmei

Re: [log4perl-devel] Can the DBIAppender Work in Multithread?

2011-04-24 Thread Mike Schilli
ender, which you can do after retrieving the appender by name. Something like Log::Log4perl->appender_by_name( "DBAppndr" )->_init(); in your consume() function should do the trick. -- Mike Mike Schilli m...@perlmeister.com ---

Re: [log4perl-devel] Can the DBIAppender Work in Multithread?

2011-04-14 Thread Mike Schilli
ost a snippet of code to reproduce this problem? -- Mike Mike Schilli m...@perlmeister.com -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is

Re: [log4perl-devel] installation to non-system location

2011-04-07 Thread Mike Schilli
ch.cpan.org/~apeiron/local-lib-1.008004/lib/local/lib.pm Alternatively, you can set the LIB variable when running Makefile.PL: perl Makefile.PL LIB=/home/mike/perl_modules Hope that helps! -- Mike Mike Schilli m...@perl

Re: [log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-02-27 Thread Mike Schilli
On Sun, 30 Jan 2011, David Christensen wrote: > I'm not certain if %T is doing the right thing (?). You said there might be > a bug. Do you mean that the: Should be fixed in Log4perl 1.32 on CPAN, give it a try. -- Mike Mike Schilli m...@perl

[log4perl-devel] Log::Log4perl 1.32 released

2011-02-26 Thread Mike Schilli
supports the utf8 flag. *(ms) [RT 64318] Andrew Sayers provided a better error message for "threshold needs to be uppercase". *(ms) CharleyDixon fixed LOGWARN when :no_extra_logdie_message is in use to no longer exit(). Enjoy! -- Mike Mike

Re: [log4perl-devel] Unable to install on win32.Please help me.

2011-02-12 Thread Mike Schilli
.. just checked the sourceforge directory and it contains the Log4perl 1.31 ppm. Looks like this was a temporary error, let me know if it persists. -- Mike Mike Schilli m...@perlmeister.com > > I executed the following command. But it throws the following error and i > can't the insta

Re: [log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-01-30 Thread Mike Schilli
help("blah"); } package main; use Log::Log4perl qw(:easy); Log::Log4perl->easy_init({layout=>'%c %m %n'}); DEBUG(__FILE__, "-", __LINE__); Helper::help(__FILE__, "-", __LINE__); Foo::foo(); -- Mike Mike Schilli m...@perlmei

Re: [log4perl-devel] $Log::Log4perl::caller_depth, layout %c and %T, and category

2011-01-30 Thread Mike Schilli
ote that if you're using qw(:easy), you need to use package Helper; BEGIN { Log::Log4perl->wrapper_register(__PACKAGE__); }; use Log::Log4perl qw(:easy); to make sure Log4perl's easy mode stealth loggers are set up correctly. With regards to %T, I th

Re: [log4perl-devel] warning on uninitialized value when logging undef

2010-11-27 Thread Mike Schilli
nt "The value is $value.\n"; where I would expect a warning if $value was undefined. The warning should point me to the location of the actual INFO call and not to somewhere within the guts of Log4perl, though ... :) -- Mike Mike Schilli m...@perlmeister.com > This is kind of ann

Re: [log4perl-devel] logger state is global

2010-11-27 Thread Mike Schilli
new instance. We could implement an object method that does what you've suggested, can you post some code to display how your class hierarchy looks like and how you call the metods of the derived class from your application? -- Mike Mike Schilli m...@perlmeister.com ---

Re: [log4perl-devel] logger state is global

2010-11-16 Thread Mike Schilli
ion? Everything I've seen so far is just plain confusing to the end user. I'm open to ideas, however. -- Mike Mike Schilli m...@perlmeister.com -- Beautiful is writing same markup. Internet Explorer 9 supports sta

Re: [log4perl-devel] Best way to prevent dying when disk is full.

2010-11-09 Thread Mike Schilli
ppender.App = NeverDieFileAppender log4perl.appender.App.filename = out.dat log4perl.appender.App.layout = PatternLayout log4perl.appender.App.layout.ConversionPattern = %F-%L: %m%n }); DEBUG "waah"; -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] Log::Log4perl has duplicate entries

2010-11-07 Thread Mike Schilli
need to use the 'additivity' flag as described here: http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#I_keep_getting_duplicate_log_messages!_What%27s_wrong? -- Mike Mike Schilli m...@perlmeister.com

[log4perl-devel] Log4perl 1.31 released

2010-10-27 Thread Mike Schilli
enjoy! -- Mike Mike Schilli m...@perlmeister.com -- Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million to

[log4perl-devel] Log::Log4perl 1.30

2010-08-30 Thread Mike Schilli
$log_dispatch_level to create_custom_level(). Updated documentation. Thanks to all contributors! -- Mike Mike Schilli m...@perlmeister.com-- This SF.net Dev2Dev email is sponsored by: Show off your parallel

Re: [log4perl-devel] eradicate / NFS

2010-08-25 Thread Mike Schilli
time, is obtain a reference to the file appender the configuration uses (or add another file appender via perl code) and use the file appender's file_switch( $newfile ) mode to point it to a newly created file. This might surprise your users, though, so be warned. -- Mike Mike Schill

Re: [log4perl-devel] unable to install Log::Log4perl on Fedora 8 for Amazon::S3 use

2010-08-17 Thread Mike Schilli
On Tue, 17 Aug 2010, Mahesh Shinde wrote: > Thanks and Regards, Mahesh Shinde It would help us diagnose the problem if you send the commands you used to install Log::Log4perl and the error message(s) you received. -- Mike Mike Schilli m...@perlmeister.

Re: [log4perl-devel] eradicate / NFS

2010-07-30 Thread Mike Schilli
andalone script that reproduces the error? -- Mike Mike Schilli m...@perlmeister.com -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share o

Re: [log4perl-devel] Feature request - complaint

2010-07-21 Thread Mike Schilli
hed). I'll make better docs ASAP. Hi Tomá, interesting idea, but I think this module could stand on its own and isn't necessarily related to Log4perl. How about you add documentation and push it to CPAN under, say, Collectd::Complaint ? -- Mike Mike Sch

Re: [log4perl-devel] printf-like messages

2010-07-09 Thread Mike Schilli
nsiderably complicate things. But thanks for the suggestion! -- Mike Mike Schilli m...@perlmeister.com-- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/fir

Re: [log4perl-devel] eradicate / NFS

2010-07-09 Thread Mike Schilli
pender destructor won't run and you need to run file_close() manually. Hope that helps! -- Mike Mike Schilli m...@perlmeister.com -- This SF.net email is sponsored by Sprint What will you do first with EVO, the firs

[log4perl-devel] Log::Log4perl 1.29 Released

2010-06-16 Thread Mike Schilli
Added INTERNAL_DEBUG env variable to test suite triggering all _INTERNAL_DEBUG statements to be printed for better error diagnosis on misbehaving systems. Enjoy! -- Mike Mike Schilli m...@perlmeiste

Re: [log4perl-devel] DBIC Object not interpreted (fwd)

2010-05-11 Thread Mike Schilli
Forwarding Steve's answer to the list ... -- Mike Mike Schilli m...@perlmeister.com -- Forwarded message -- From: Steve To: Mike Schilli Subject: Re: [log4perl-devel] DBIC Object not interpreted Date: Tue, 11 May 2010 08:15:17 -0400 On 5/11/2010 1:25 AM, Mike Schilli

Re: [log4perl-devel] DBIC Object not interpreted

2010-05-10 Thread Mike Schilli
package main; use Log::Log4perl qw(:levels get_logger); Log::Log4perl->easy_init($DEBUG); my $logger = get_logger(); my $wobble = Wobble->new(); $log

Re: [log4perl-devel] Log::Log4perl conundrum

2010-04-29 Thread Mike Schilli
so here it is: The log4perl FAQ describes this scenario in "How can I send errors to the screen, and debug messages to a file?" http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#How_can_I_send_errors_to_the_screen,_and_debug_messages_to_a_file? -- Mike Mike Schi

Re: [log4perl-devel] UTF-8, Threads and Syswrite

2010-04-21 Thread Mike Schilli
t it, I end up with doubly-encoded characters in the log file (no warning, though). Tested with perl-5.10.0 and perl-5.10.1. -- Mike Mike Schilli m...@perlmeister.com > > > > use threads; > > use threads::shared; > > use Log::Log4perl qw(get_logger); > > Log

Re: [log4perl-devel] log4perl Data::Dumper and renaming $VAR1

2010-04-09 Thread Mike Schilli
On Fri, 9 Apr 2010, Josh803316 wrote: > wn edificationwhat is the real difference between the filter > method and the sub method or are they basically the same? They're the same, just different notations. -- Mike Mike Schilli m...@perl

Re: [log4perl-devel] log4perl Data::Dumper and renaming $VAR1

2010-04-08 Thread Mike Schilli
nce to a subroutine to Log4perl's logging methods: $logger->trace( sub { Data::Dumper->Dump([$name], ['name']) } ); would do the trick while retaining the time-saving late evaluation. -- Mike Mike Schilli m...@perlmeister.com ---

Re: [log4perl-devel] logdie() reports its own source file and line number, not caller's

2010-04-07 Thread Mike Schilli
- Mike Mike Schilli m...@perlmeister.com -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why

Re: [log4perl-devel] logdie() reports its own source file and line number, not caller's

2010-04-06 Thread Mike Schilli
On Thu, 1 Apr 2010, Rob Retter wrote: > I'm not entirely sure, but I think there may be something wrong with > logdie() and company Yeah, definitely a bug in logdie(), I'll take care of it, thanks for your report! -- Mike Mike Schilli m...

Re: [log4perl-devel] Use of convenience functions in Catalyst apps

2010-03-19 Thread Mike Schilli
github.com/mschilli/log4perl/commit/aeaf10cca8e8c5ba64bc2783109dc5b345436d91 Enjoy! :) -- Mike Mike Schilli m...@perlmeister.com > WARN(), ERROR(), FATAL(), and ALWAYS. Call me lazy but I am trying to > avoid doing things like: $c->log->debug("hello"); now that I have been > spoiled with using DEBUG

Re: [log4perl-devel] Use of convenience functions in Catalyst apps

2010-03-12 Thread Mike Schilli
ook into making the macros work with Catalyst. -- Mike Mike Schilli m...@perlmeister.com -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tu

  1   2   3   >