Hi,
Actually NonInheritedRotatingFileHandler is rotating the log files but some
times it falis and showing I/O errors while the log file limit reaches the
given size.
Thanks
Arun
--
View this message in context:
http://python.6.n6.nabble.com/RotatingFileHandler-Fails-tp4542769p4554781.html
S
Hi nac,
NTSafeLogging.py is working fine without any errors, but its not rotating
the log files as rotatingfilehandler does.
Do you have any working sample with NTSafeLogging which rotates the log
file.
logging issue with subprocess.Popen can be solved using this code
import threading
lock =
On Mar 5, 4:27 am, Jean-Michel Pichavant
wrote:
> nac wrote:
> > The RotatingFileHandler running on win 7 64-bit; py 2.7 is failing
> > when the script launches a process using subprocess.Popen. Works fine
> > if the subprocess is not launched
>
> > The exception thrown
> > Traceback (most recent
nac wrote:
The RotatingFileHandler running on win 7 64-bit; py 2.7 is failing
when the script launches a process using subprocess.Popen. Works fine
if the subprocess is not launched
The exception thrown
Traceback (most recent call last):
File "C:\Python27\lib\logging\handlers.py", line 78, in
On Dec 21, 9:33 pm, jordilin wrote:
> Hi,
> I've a config forloggingwhere I set up a file rotation with
> handlers.RotatingFileHandler and when the app parses thelogging
> config it says keyError when trying to parse that section
> ('RotatingFileHandler' is not defined). Curiously enough, I can d
jordilin wrote:
Hi,
I've a config for logging where I set up a file rotation with
handlers.RotatingFileHandler and when the app parses the logging
config it says keyError when trying to parse that section
('RotatingFileHandler' is not defined). Curiously enough, I can do
import logging and from
I never got a response back from this, but I'm noticing even more odd
behavior, see inline:
On Wed, Sep 30, 2009 at 4:38 PM, Max Lynch wrote:
> Hi.
> I have a RotatingFileHandler for my logging system. I have it set to
> rotate once the file becomes 5MB in size. Here is the conf line I have in
En Wed, 16 Apr 2008 10:50:44 -0300, <[EMAIL PROTECTED]> escribió:
> I am using the RotatingFileHandler logger with Python 2.5 on Windows and
> I am getting an error on the rollover. When the log file gets close to
> the size where it needs to rollover, I start getting the following error
>
On May 10, 6:37 pm, [EMAIL PROTECTED] wrote:
> On May 9, 12:37 am, Vinay Sajip <[EMAIL PROTECTED]> wrote:
>
> Our biggest concerns with the network solution is having a single
> point of failure and the need for scalability. We could have
> potentially thousands of machines doingloggingacross multi
On May 9, 12:37 am, Vinay Sajip <[EMAIL PROTECTED]> wrote:
> On May 9, 12:52 am, [EMAIL PROTECTED] wrote:> The infrastructure in which I
> am work needs the ability to have log
> > files written to from multiple instances of the same script and
> > potentially from hundreds or more different machi
On May 9, 12:52 am, [EMAIL PROTECTED] wrote:
> The infrastructure in which I am work needs the ability to have log
> files written to from multiple instances of the same script and
> potentially from hundreds or more different machines.
>
> I know that the documentation suggests using a networklogg
That was perfect-- it now all behaves as it should. Thanks!
On 1/11/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
At Thursday 11/1/2007 15:59, Stephen Hansen wrote:
>If I run app1, and then app2, it all works fine. Specifically, the
>apps are logging correctly and I can see with Process Exp
At Thursday 11/1/2007 15:59, Stephen Hansen wrote:
If I run app1, and then app2, it all works fine. Specifically, the
apps are logging correctly and I can see with Process Explorer that
each has a handle to the appropriate files.
However, I have a setting to make App2 run App1 in the backgrou
new pip gmail.com> writes:
>
> Is the RotatingFileHandler (from the logging module) available in
> Python 2.3.5? I'm getting a "AttributeError: 'module' object has no
> attribute 'RotatingFileHandler'" error message when trying to use it.
The handler is in the logging.handlers module, not in th
Rob Cranfill wrote:
NID (No, It Doesn't) ;-) but thanks anyway. To reiterate, the question
is how to make RotatingFileHandler do a doRotate() on startup from a
*config file*. No mention of that in what you point to.
I don't think that RotatingFileHandler *should* be configurable to do a
doRoll
Rob Cranfill wrote:
Ah, now *there's* an intriguing approach! I am too much a Python noob to
know - can I subclass RFH and then invoke that new class from a config
file (the crux of my original question) ? I may play around with it
today
There's at least one way that will work, though it ma
news.sydney.pipenetworks.com wrote:
Yeah...sorry about that. I misunderstood what node333.html was used for.
Looks like your best bet may be to extend the RotatingFileHandler
directly in the handlers module and call doRollover() in __init__.
Ah, now *there's* an intriguing approach! I am too much
Bengt Richter wrote:
The first hit is
http://docs.python.org/lib/node332.html
HTH
NID (No, It Doesn't) ;-) but thanks anyway. To reiterate, the question
is how to make RotatingFileHandler do a doRotate() on startup from a
*config file*. No mention of that in what you point to.
- ro
Rob Cranfill wrote:
news.sydney.pipenetworks.com wrote:
You're looking in the wrong place. Try
http://docs.python.org/lib/node333.html
which isn't quite the page in question, but leads to the closest
pertinent page,
http://docs.python.org/lib/logging-config-fileformat.html
which *still* has noth
On Wed, 16 Mar 2005 20:48:40 -0800, Rob Cranfill <[EMAIL PROTECTED]> wrote:
>news.sydney.pipenetworks.com wrote:
>
>>
>> You're looking in the wrong place. Try
>>
>> http://docs.python.org/lib/node333.html
>>
>
>which isn't quite the page in question, but leads to the closest
>pertinent page,
Peter Hansen wrote:
The missing piece of the puzzle might be the connection
between the 'args' in the config file and the arguments
passed to the __init__ method of the class
Yes, I can puzzle out the constructor args ("constructor", heh heh, must
be a Java Man) but it's how to get it to do a
news.sydney.pipenetworks.com wrote:
You're looking in the wrong place. Try
http://docs.python.org/lib/node333.html
which isn't quite the page in question, but leads to the closest
pertinent page,
http://docs.python.org/lib/logging-config-fileformat.html
which *still* has nothing on RotatingFileH
Rob Cranfill wrote:
Kent Johnson wrote:
It is in the latest docs.
Kent
No, it isn't. (But thanks for replying anyway!)
http://docs.python.org/lib/logging-config-fileformat.html
You're looking in the wrong place. Try
http://docs.python.org/lib/node333.html
Huy
--
http://mail.python.org/mailman/
Rob Cranfill wrote:
Kent Johnson wrote:
It is in the latest docs.
No, it isn't. (But thanks for replying anyway!)
Can you prove it isn't? ;-)
http://docs.python.org/lib/logging-config-fileformat.html
has all the others (OK, maybe not all, I haven't thoroughly checked, but
it's got nine of 'em)
Kent Johnson wrote:
It is in the latest docs.
Kent
No, it isn't. (But thanks for replying anyway!)
http://docs.python.org/lib/logging-config-fileformat.html
has all the others (OK, maybe not all, I haven't thoroughly checked, but
it's got nine of 'em) but nothing for RFH.
Or is that not "the la
Rob Cranfill wrote:
[BTW, has anyone else noticed that RotatingFileHandler isn't documented
in the docs? All the other file handlers have at least a paragraph on
their options, but nothing for RFH!]
It is in the latest docs.
Kent
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 03 Dec 2004 09:40:07 +, Vinay Sajip wrote:
> Of course, you should not normally be calling emit() from user code. The
> correct approach is to log events to loggers, and not emit them to
> handlers directly.
Thanks, I finally got that figured out. Lots changed between the time I
Robert Brewer wrote:
Kamus of Kadizhar wrote:
I'm having a problem with logging. I have an older app that used the
RotatingFileHandler before it became part of the main distribution (I
guess in 2.3).
[snip]
The offending snippet of code is:
logFile =
logging.handlers.RotatingFileHandler('/var/l
Kamus of Kadizhar wrote:
> I'm having a problem with logging. I have an older app that used the
> RotatingFileHandler before it became part of the main distribution (I
> guess in 2.3).
>
> It worked fine then. Now I get:
>
> [EMAIL PROTECTED] bin]# ./mplayer.py file://test.avi
> //test.avi
> Tr
29 matches
Mail list logo