Re: [log4perl-devel] Questions on Log4perl

2007-08-09 Thread Mike Schilli
://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#02bbc And here's how to use dynamic values at log time: http://log4perl.sourceforge.net/d/Log/Log4perl/Layout/PatternLayout.html#9af52 Hope that helps! -- Mike Mike Schilli [EMAIL PROTECTED] log4perl.PatternLayout.cspec.D = Log4perl::get_pid( sub {use

Re: [log4perl-devel] Log4perl Categories

2007-08-16 Thread Mike Schilli
from Bar::Twix's 'eat' method. Would it be a bad idea to incorporate this? Does this third-party CPAN module solve the problem? http://search.cpan.org/dist/Log-Log4perl-AutoCategorize/ -- Mike Mike Schilli [EMAIL PROTECTED

Re: [log4perl-devel] Logger Properties

2007-09-27 Thread Mike Schilli
log4perl.appender.Logfile.filename = test.log ... then find the Logfile appender via my $app = Log::Log4perl-appender_by_name(Logfile); and to obtain the name of the logfile it's using, call its 'filename' method: print $app-filename(), \n; -- Mike Mike Schilli [EMAIL PROTECTED] Nonethless, I think

Re: [log4perl-devel] Logger Properties

2007-09-27 Thread Mike Schilli
! :) -- Mike Mike Schilli [EMAIL PROTECTED] This would be nice to have in the docs. Thanks. -Eric. -Original Message- From: Mike Schilli =5Bmailto:m=40perlmeister.com=5D Sent: Thursday, June 28, 2007 7:54 PM To: Berg, Eric Cc: log4perl-devel=40lists.sourceforge.net Subject: Re

Re: [log4perl-devel] expressing common appender properties in config

2007-10-09 Thread Mike Schilli
://log4perl.sourceforge.net/d/Log/Log4perl.html#bd632 -- Mike Mike Schilli [EMAIL PROTECTED] log4perl.appender.foofile = Log::Log4perl::Appender::File log4perl.appender.foofile.filename = logs/foo.log log4perl.appender.foofile.mode = append log4perl.appender.foofile.layout = PatternLayout

Re: [log4perl-devel] set file permissions for Log::Dispatch::FileRotate appender?

2007-11-03 Thread Mike Schilli
. -- Mike Mike Schilli [EMAIL PROTECTED] - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download

Re: [log4perl-devel] Problems with uninitialized root-logger in log::log4perl

2007-12-04 Thread Mike Schilli
the internal error above? Perhaps the uninitialized root logger causes the erroneous exception handling as described in point 3.)? I'm not sure how you get there - is there an easy way for me to reproduce this problem? -- Mike Mike Schilli [EMAIL PROTECTED

Re: [log4perl-devel] File rotation every day

2008-01-16 Thread Mike Schilli
on the 'recreate' flag. Hope that helps! -- Mike Mike Schilli [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01

Re: [log4perl-devel] Can't call method log on an undefined value...Appender.pm line 189 during global destruction.

2008-02-15 Thread Mike Schilli
code example that I can reproduce the error with? -- Mike Mike Schilli [EMAIL PROTECTED] I have a series of modules that are descendants of other packages. Scripts using the objects are using log4perl, and the packages also use log4perl. Everything seems to work - I initiate the logger

Re: [log4perl-devel] Is it safe to use log4perl under Apache (multi worker mode)

2008-03-09 Thread Mike Schilli
to the same file requires some precautions, all listed in this FAQ: http://log4perl.sourceforge.net/d/Log/Log4perl/FAQ.html#23804 -- Mike Mike Schilli [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy

Re: [log4perl-devel] Watchdog reporting

2008-05-12 Thread Mike Schilli
://log4perl.sourceforge.net/d/Log/Log4perl.html#bd632 -- Mike Mike Schilli [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go

Re: [log4perl-devel] log4perl appenders with warp_message=0

2008-05-13 Thread Mike Schilli
, $msg); Log::Log4perl::MDC-put(netcool-key, undef); which isn't exactly handy. ... or you define a wrapper around that: http://log4perl.sourceforge.net/d/Log/Log4perl.html#6acb7 -- Mike Mike Schilli [EMAIL PROTECTED] -Original Message- From: Mike Schilli [mailto:[EMAIL

Re: [log4perl-devel] log4perl appenders with warp_message=0

2008-05-15 Thread Mike Schilli
(properly) checking that people haven't made a stupid mistake in forgetting the layout. Exactly, catching stupid errors has precedence over making slick code short. :) -- Mike Mike Schilli [EMAIL PROTECTED] - This SF.net

Re: [log4perl-devel] Understanding the config

2008-05-16 Thread Mike Schilli
to use Perl code to init Log4perl, most of the time people either use easy_init() or init($conf_file). -- Mike Mike Schilli [EMAIL PROTECTED] - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R

Re: [log4perl-devel] Sending email of logs only on failure

2008-11-06 Thread Mike Schilli
a CPAN module like Mail::DWIM. -- Mike Mike Schilli [EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes

Re: [log4perl-devel] Log::Log4perl MDC at object level

2008-11-16 Thread Mike Schilli
= \ sub { POE::Kernel-get_active_session- \ get_heap()-{ $_[0]-{curlies} } } and print the POE session heap entries 'user' and 'id' with every logged message. For more details on cpecs, read the PatternLayout manual. Hope that helps! -- Mike Mike Schilli [EMAIL PROTECTED

Re: [log4perl-devel] Sending SMTP Mail via Log4Perl

2008-11-20 Thread Mike Schilli
. (Cannot locate 'Server' at log4Perl.pl line 1 Warning: something's wrong at /opt/ActivePerl-5.8/site/lib/Mail/Mailer.pm line 278). Hmm, your version of Mail::Mailer seems to be different from the one on CPAN -- which one are you using? -- Mike Mike Schilli [EMAIL PROTECTED

Re: [log4perl-devel] Test-Failure on Solaris 10 with perl 5.10.0

2008-12-09 Thread Mike Schilli
On Tue, 9 Dec 2008, Mike Schilli wrote: Interesting, which version of LWP::UserAgent do you have installed? Never mind, I found it, it's caused by the latest LWP release (5.822), which got rid of all of its internal debugging functions. I'll fix the Log4perl test suite to omit this test in case

Re: [log4perl-devel] Log4perl - Multiple files and different log levels

2009-01-26 Thread Mike Schilli
messages in system-wide logging if debug log is turned of. Hmm, I need some clarification on this one -- what exactly do you want to replicate? -- Mike Mike Schilli m...@perlmeister.com I am a new user of log4perl and to this mailing list. I am working on a perl project - want

Re: [log4perl-devel] Problems with log4perl and __DIE__ pseudo signal

2009-02-09 Thread Mike Schilli
://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#How_can_I_make_sure_my_application_logs_a_message_when_it_dies_unexpectedly? -- Mike Mike Schilli m...@perlmeister.com -- Create and Deploy Rich Internet Apps

Re: [log4perl-devel] Log::Log4perl::Appender::DBI appender not working

2009-02-11 Thread Mike Schilli
for a password, type '12345'. If this works, the only other suspicious item I noticed at first glance is the ;port= part -- try it without. -- Mike Mike Schilli m...@perlmeister.com log4perl.appender.DBAppender.sql= \ INSERT INTO spp (loglevel, message) \ VALUES

Re: [log4perl-devel] Log::Log4perl::Appender::DBI appender not working

2009-02-12 Thread Mike Schilli
using a configuration file, but if you attach the DBI appender via add_appender() in your code, you can pass in your $dbh to the constructor via new( dbh = $dbh). -- Mike Mike Schilli m...@perlmeister.com Thanks, David On Feb 11, 2009 4:49pm, Kevin M. Goess c...@goess.org wrote: What

Re: [log4perl-devel] logging in home grown module packages

2009-02-12 Thread Mike Schilli
log4perl.category.Mycompany.Modules = ... then it'll cover both Mycompany:Modules:A and Mycompany:Modules:B because of logger inheritance: http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl.pm#Categories -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] logging to different files and file rotation

2009-02-17 Thread Mike Schilli
#I_keep_getting_duplicate_log_messages!_What's_wrong? Also, what do you mean exactly when you say log WARN -- is it WARN messages only or WARN+up? -- Mike Mike Schilli m...@perlmeister.com 3. output to screen at level INFO 4. email at level WARN and here is the log4per.properties file: #predefined variables

Re: [log4perl-devel] Appender::File and Layout question

2009-02-18 Thread Mike Schilli
? -- Mike Mike Schilli m...@perlmeister.com My application uses one common logging facility (hence the easy_init). Certain parts of the application want to create occasionally their various other logfiles with their own layout and shorter lifetime than the common logging system (demonstrated here

Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration

2009-02-19 Thread Mike Schilli
/ActivePerl- 5.8/lib/site_perl/5.8.7/Log/Log4perl/Appender.pm line 189. Hmm, that's peculiar. I wonder what kind of config change would cause this. Are you removing an appender by any chance? -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] Appender::File and Layout question

2009-02-19 Thread Mike Schilli
. The continually going logfile appender is in 'append' mode and the request-based logfile appender is in 'clobber' mode. -- Mike Mike Schilli m...@perlmeister.com -- Open Source Business Conference (OSBC), March 24-25, 2009

Re: [log4perl-devel] Intermittent problems when using signal to reread log configuration

2009-02-22 Thread Mike Schilli
ActiveState Perl on Unix! :) -- Mike Mike Schilli m...@perlmeister.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise

Re: [log4perl-devel] Appender::File and Layout question

2009-03-06 Thread Mike Schilli
. Hope that helps! -- Mike Mike Schilli m...@perlmeister.com -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise

Re: [log4perl-devel] rotation on new run of script

2009-03-11 Thread Mike Schilli
::FileRotate man page, nor does it claim to roll it on every invocation. You probably need something like a custom file appender for this. -- Mike Mike Schilli m...@perlmeister.com -- Apps built with the Adobe(R) Flex(R

Re: [log4perl-devel] rotation on new run of script

2009-03-11 Thread Mike Schilli
log4perl.appender.Logfile.filename = sub { log- . time() . .log } to name your logfiles after the current timestamp? -- Mike Mike Schilli m...@perlmeister.com I see what you mean about the valid date patterns. Implement in haste, repent at leisure. Also, apologies for the stupid .sig. I have no control over

Re: [log4perl-devel] rotation on new run of script

2009-03-11 Thread Mike Schilli
On Wed, 11 Mar 2009, DAY Roger wrote: That would work, cheers. I was thinking it'll be fun to write a custom appender. No doubt, go for it :). -- Mike Mike Schilli m...@perlmeister.com I'll think on it. Roger -Original Message- From: Mike Schilli [mailto:m...@perlmeister.com

[log4perl-devel] Log::Log4perl 1.21 released

2009-03-17 Thread Mike Schilli
Mike Schilli m...@perlmeister.com -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder

Re: [log4perl-devel] apache worker, mod_perl2, appender/semaphore problem under medium load

2009-03-20 Thread Mike Schilli
On Fri, 20 Mar 2009, fol...@netnea.com wrote: - log4perl 1.10-1 (Ubuntu) There's been a lot of changes to the Synchronized appender between Log4perl 1.10 (released two years ago) and the current Log4perl 1.21 -- can you try the latest? -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] Problems with API config using appender Synchronized

2009-04-12 Thread Mike Schilli
to remove the semaphore. Hmm, this sounds like a bug, but I'm not sure what your 'existing' processes are doing in this case -- can you provide some test code? -- Mike Mike Schilli m...@perlmeister.com -- This SF.net email

[log4perl-devel] Log::Log4perl 1.22 released

2009-05-04 Thread Mike Schilli
by Tim Bunce (see PatternLayout). By the way, we're on github now, so if you want to contribute to the project, it's now easier than ever: http://github.com/mschilli/log4perl Enjoy! -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] signal handling and log4perl

2009-05-09 Thread Mike Schilli
handler listening to USR2. You can add whatever other logic you need to it. When triggered, it also forwards the signal to Log4perl's signal handler, which listens to USR1. Good enough? -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] signal handling and log4perl

2009-05-09 Thread Mike Schilli
be able to call Log::Log4perl::Config-watcher-force_next_check(); instead of using a signal: http://github.com/mschilli/log4perl/commit/6c8609f1ba064d3f781769cb9e1b45638f3daa75 (will probably go out soon). -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] Log4perl and catching unhandle exceptions but not using 'easy' mode

2009-05-20 Thread Mike Schilli
but failed so would appreciate any guidance? This should work, what was the problem/error message you encountered? -- Mike Mike Schilli m...@perlmeister.com -- Register Now for Creativity and Technology (CaT), June 3rd

Re: [log4perl-devel] Log4perl and catching unhandle exceptions but not using 'easy' mode

2009-05-21 Thread Mike Schilli
? Please post the complete (runnable) code to make it easier to diagnose the problem. -- Mike Mike Schilli m...@perlmeister.com package Trapper; use Log::Log4perl qw(get_logger :levels

Re: [log4perl-devel] Log4perl and catching unhandle exceptions but not using 'easy' mode

2009-05-21 Thread Mike Schilli
On Thu, 21 May 2009, Richard Burton wrote: It is more of a general question so that I can build it in to my code; I don't have a specific example? Maybe I misunderstood, but you said I have tried but failed, and from what I saw, you're doing everything correctly. -- Mike Mike Schilli m

Re: [log4perl-devel] Log4perl

2009-07-07 Thread Mike Schilli
be able to use the normal CPAN installer (which can be configured to use http). -- Mike Mike Schilli m...@perlmeister.com -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes

Re: [log4perl-devel] package 'Log::Dispatch::Email::MailSender' not registered for warnings

2009-07-07 Thread Mike Schilli
queue aborted. Which version of Log::Dispatch are you using, the latest from CPAN, 2.22? -- Mike Mike Schilli m...@perlmeister.com -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000

Re: [log4perl-devel] package 'Log::Dispatch::Email::MailSender' not registered for warnings

2009-07-08 Thread Mike Schilli
in this area. Give it a try! -- Mike Mike Schilli m...@perlmeister.com -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new

Re: [log4perl-devel] Limiting file size in log4perl

2009-08-25 Thread Mike Schilli
of the log file, and switch to a new log file if the old one got too big. That's exactly what Log::Dispatch::FileRotate does if you call it with a max value of 1. -- Mike Mike Schilli m...@perlmeister.com -- Let Crystal

Re: [log4perl-devel] Limiting file size in log4perl

2009-08-26 Thread Mike Schilli
::Dispatch appenders: http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl.pm#Additional_Appenders_via_Log::Dispatch If there's an equivalent in Log4perl (like for a file appender), using the native appenders is recommended because they provide additional functionality. -- Mike Mike

Re: [log4perl-devel] log4perl License?

2009-09-11 Thread Mike Schilli
On Fri, 11 Sep 2009, Terry Kummell wrote: Do we need to license log4perl in order to use it in our product? Hi Terry, Log4perl is provided under the same license as perl itself: http://dev.perl.org/licenses/ Hope that helps! -- Mike Mike Schilli m...@perlmeister.com

[log4perl-devel] Log4perl 1.25 released

2009-09-27 Thread Mike Schilli
modified patch by Gabriel Berriz). If all goes well, it'll hit CPAN in a couple of days. Enjoy! -- Mike Mike Schilli m...@perlmeister.com -- Come build with us! The BlackBerryreg; Developer Conference in SF, CA

[log4perl-devel] Log4perl 1.26 released

2009-11-22 Thread Mike Schilli
() to Threshold keyword uppercase check. * (ms) Took out Class::Prototyped testcase after it got all weird and introduced backward-incompatible changes. If all goes well, it'll hit CPAN in a couple of days. -- Mike Mike Schilli m...@perlmeister.com

Re: [log4perl-devel] package 'Log::Dispatch::Email::MailSender' notregistered for warnings

2009-11-25 Thread Mike Schilli
me that identical installation should behave identically :). You might also want to check if perl is actually pulling the correct version of the module, sometimes people install identical modules in multiple locations. -- Mike Mike Schilli m...@perlmeister.com -Original Message- From

Re: [log4perl-devel] Change in behavior when upgrading to 1.26 and perl 5.10.0

2009-12-09 Thread Mike Schilli
! -- Mike Mike Schilli m...@perlmeister.com -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ log4perl-devel

Re: [log4perl-devel] Please add comments to FAQ

2010-01-13 Thread Mike Schilli
On Tue, 12 Jan 2010, Malcolm Nooning wrote: Please add the above note to the faq. Done, thanks for the note! http://github.com/mschilli/log4perl/commit/aa140e15be803988ccee7ea3f1da83d5d5165a11 -- Mike Mike Schilli m...@perlmeister.com There is already a section in the FAQ.html

Re: [log4perl-devel] performance enhancement for timestamps

2010-01-26 Thread Mike Schilli
introduces milliseconds and hence kills the optimization. More to come soon ... -- Mike Mike Schilli m...@perlmeister.com time string over and over and overYou tend to see the same timestamp on numerous consecutive log entries (unless you're using milliseconds, which seems like overkill

Re: [log4perl-devel] [FR] CODE refs in config file.

2010-01-27 Thread Mike Schilli
to create a subclass of Log::Log4perl::Appender::File (rather than Log::Dispatch which misses a number of features) to accomplish what you want. Hope that helps! -- Mike Mike Schilli m...@perlmeister.com-- The Planet

Re: [log4perl-devel] Log4perl best practices for high traffic sites

2010-01-27 Thread Mike Schilli
/sec because the OS typically caches disc access quite efficiently. Your mileage might vary, so prudent load testing is of the essence. -- Mike Mike Schilli m...@perlmeister.com -- The Planet: dedicated and managed hosting

Re: [log4perl-devel] question re: running system commands from a wrapper

2010-01-27 Thread Mike Schilli
On Wed, 27 Jan 2010, Keith Clay wrote: Is there a way to pass info to a called command? can it ingest the config file for the calling program, add it's own appender/s and write to files the calling program has open? Not sure I'm following ... what are you trying to do? -- Mike Mike Schilli

Re: [log4perl-devel] Masking secrets in log4perl output

2010-02-02 Thread Mike Schilli
the cleartext passwords and b) you'd get funny (and revealing!) results if the password matches regular text. -- Mike Mike Schilli m...@perlmeister.com For example, I routinely use log4perl to dump the data in web forms before POSTing them. These forms often contain sensitive user information and I

Re: [log4perl-devel] 1.26 installation fails date test with perl 5.10.0

2010-02-04 Thread Mike Schilli
instead. Maybe a bug on a specific platform? Which one are you on? Can you try with a later perl version? -- Mike Mike Schilli m...@perlmeister.com On Thu, 4 Feb 2010, you wrote: This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi t/023Date.t .. 1/36  #   Failed test at t

[log4perl-devel] Log4perl 1.27 Released

2010-02-07 Thread Mike Schilli
to be passed to the log() function, which stores the completely rendered message and can be passed to log_cached() later on. Enjoy! -- Mike Mike Schilli m...@perlmeister.com -- The Planet

Re: [log4perl-devel] invoking threshold() leaves appender data inconsistent

2010-02-07 Thread Mike Schilli
the configuration file? Can you point me to the code? -- Mike Mike Schilli m...@perlmeister.com -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network

Re: [log4perl-devel] Rolling File Appender

2010-02-17 Thread Mike Schilli
#How_can_I_roll_over_my_logfiles_automatically_at_midnight? Hope this helps. -- Mike Mike Schilli m...@perlmeister.com -- SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get

Re: [log4perl-devel] Problem with Log::Dispatch::FileRotate-Appender and -d:Profile

2010-02-19 Thread Mike Schilli
with Log4perl or any other modules used, most likely it's a bug in the Profiler. I personally prefer http://search.cpan.org/~timb/Devel-NYTProf-3.01/ Want to give it a try? -- Mike Mike Schilli m...@perlmeister.com use warnings; use strict; use Log::Dispatch::FileRotate; use Log::Log4perl

[log4perl-devel] Log::Log4perl 1.28 released

2010-02-24 Thread Mike Schilli
and then increasing it is incorrect, as this ignores previous settings. The correct way of increasing the caller level is: 'local depth = depth + 1'. *(ms) Added Log::Log4perl::Catalyst for use in Catalyst applications. Enjoy! -- Mike Mike Schilli m

Re: [log4perl-devel] Problem with Log::Dispatch::FileRotate-Appender and -d:Profile

2010-03-11 Thread Mike Schilli
On Thu, 11 Mar 2010, mara raram wrote: I was so busy profiling that I completely forgot to thank you for that tip. So, thanks a lot, works brilliant. Glad to hear it worked out! -- Mike Mike Schilli m...@perlmeister.com

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

2010-03-12 Thread Mike Schilli
Mike Schilli m...@perlmeister.com -- Download Intel#174; 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] Use of convenience functions in Catalyst apps

2010-03-19 Thread Mike Schilli
/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(hello); in other places that I use Log4perl. Thanks

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

2010-04-07 Thread Mike Schilli
On Thu, 1 Apr 2010, Rob Retter wrote: my die message without newline at /ccrun/perl/3rdparty/lib/Log/Log4perl/Logger.pm line 884 Fixed, will be released with 1.29: http://github.com/mschilli/log4perl/commit/f74c3490268a78a8cc81f96cbcf78c8bf76e374d Thanks again for your report. -- Mike Mike

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

2010-04-09 Thread Mike Schilli
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 -- Download Intel#174

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...@perlmeister.com

Re: [log4perl-devel] DBIC Object not interpreted

2010-05-10 Thread Mike Schilli
); my $logger = get_logger(); my $wobble = Wobble-new(); $logger-info(return of ptn: , $wobble-ptn()); -- Mike Mike Schilli m...@perlmeister.com -- ___ log4perl

[log4perl-devel] Log::Log4perl 1.29 Released

2010-06-17 Thread Mike Schilli
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...@perlmeister.com

Re: [log4perl-devel] eradicate / NFS

2010-07-30 Thread Mike Schilli
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 of $1 Million in cash or HP

[log4perl-devel] Log4perl 1.31 released

2010-10-27 Thread Mike Schilli
! -- Mike Mike Schilli m...@perlmeister.com -- Nokia and ATT 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 total in prizes

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

2010-11-09 Thread Mike Schilli
= out.dat log4perl.appender.App.layout = PatternLayout log4perl.appender.App.layout.ConversionPattern = %F-%L: %m%n }); DEBUG waah; -- Mike Mike Schilli m...@perlmeister.com -- The Next 800 Companies to Lead

Re: [log4perl-devel] logger state is global

2010-11-16 Thread Mike Schilli
. -- Mike Mike Schilli m...@perlmeister.com -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code

Re: [log4perl-devel] logger state is global

2010-11-27 Thread Mike Schilli
hierarchy looks like and how you call the metods of the derived class from your application? -- Mike Mike Schilli m...@perlmeister.com -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap

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

2011-01-30 Thread Mike Schilli
; 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 think that's a bug, I'll investigate. Hope that helps. -- Mike Mike Schilli m

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

2011-01-30 Thread Mike Schilli
); Log::Log4perl-easy_init({layout='%c %m %n'}); DEBUG(__FILE__, -, __LINE__); Helper::help(__FILE__, -, __LINE__); Foo::foo(); -- Mike Mike Schilli m...@perlmeister.com -- Special Offer-- Download ArcSight

[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 Schilli m

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...@perlmeister.com

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

2011-04-14 Thread Mike Schilli
this problem? -- Mike Mike Schilli m...@perlmeister.com -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce

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

2011-04-24 Thread Mike Schilli
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 -- Fulfilling the Lean Software Promise

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

2011-07-23 Thread Mike Schilli
-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: error message as (hopefully) expected. Hope that helps. -- Mike Mike Schilli m...@perlmeister.com On Fri, 22 Jul 2011, Steve Chadsey wrote: I have a script

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

2011-07-29 Thread Mike Schilli
, 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 get a chance to win $100 to spend

Re: [log4perl-devel] re-init question

2011-08-08 Thread Mike Schilli
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 Mike Schilli m...@perlmeister.com

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

2011-09-26 Thread Mike Schilli
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 mode with no get_logger

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

2012-04-18 Thread Mike Schilli
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 contained in a custom, encrypted archive

[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] Bug: Wrapped logdie reports wrong file/line

2012-09-18 Thread Mike Schilli
/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 my wrapping code

[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 Mike

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

2012-09-23 Thread Mike Schilli
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 it :). -- -- Mike Mike Schilli m

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

2012-10-18 Thread Mike Schilli
, 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 stringified version of what you pass to it. Here's an example: --- #!/usr

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

2012-12-27 Thread Mike Schilli
the line Log::Log4perl-appender_by_name( 'log4perl.appender.A1.filename'); to something like my $appender = Log::Log4perl-appender_by_name( 'A1' ); print $appender-filename(); Hope that helps, let me know if you need anything else! -- -- Mike Mike Schilli m

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

2013-03-27 Thread Mike Schilli
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. -- -- Mike Mike Schilli m...@perlmeister.com

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...@perlmeister.com

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

2013-12-23 Thread Mike Schilli
? -- -- 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 affects their revenue

Re: [log4perl-devel] Functionality question

2014-03-16 Thread Mike Schilli
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 Graph Databases is the definitive new guide to graph databases

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

2014-03-20 Thread Mike Schilli
, 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 Co. Ltd. Hohlstrasse 600

[log4perl-devel] Log::Log4perl 1.45 released

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

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 Schilli m

  1   2   >