<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/log4py/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/log4py/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 24 Feb 2006 19:23:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/log4py/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>Corrected/Enhanced Syslog Support</title><link>https://sourceforge.net/p/log4py/patches/5/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This patch corrects the following problem with &lt;br /&gt;
log4py's Syslog support:&lt;/p&gt;
&lt;p&gt;* Log messages are now sent to syslog under the log &lt;br /&gt;
level that they were specified as.  Previously, all &lt;br /&gt;
messages were sent as log level INFO.&lt;/p&gt;
&lt;p&gt;This patch is to enhance the support of Syslog &lt;br /&gt;
Appending.  The following enhancements are included:&lt;/p&gt;
&lt;p&gt;* Added support for passing the logger options to &lt;br /&gt;
syslog, such as LOG_PID, LOG_NDELAY, etc.&lt;br /&gt;
* Configured the calls to syslog so they would be &lt;br /&gt;
identified as coming from the current script, rather &lt;br /&gt;
than the blanket "python" identity.&lt;br /&gt;
* Added "%i" to the pattern layout interpretation to &lt;br /&gt;
insert the current running user into the layout.&lt;br /&gt;
* Enabled the pattern layout to be applied to syslog &lt;br /&gt;
targets.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nathanael</dc:creator><pubDate>Fri, 24 Feb 2006 19:23:51 -0000</pubDate><guid>https://sourceforge.net08e25a46e28a02fbe25cd45f7709a0dbb0c8ea0f</guid></item><item><title>WinXP home path resolving error</title><link>https://sourceforge.net/p/log4py/patches/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;On my WinXP box resolving path to home directory is not &lt;br /&gt;
working. I mean: &lt;/p&gt;
&lt;p&gt;When I ran log4py-test.py i got an error not finding a &lt;br /&gt;
file:&lt;br /&gt;
F:\My Downloads\Programowanko\Skrypty\Python\biblioteki &lt;br /&gt;
mniej wazne\log4py-1.3&amp;gt;log4py-test.py&lt;br /&gt;
.&lt;/p&gt;
&lt;p&gt;Here is a path-candidate :). It works for me.&lt;br /&gt;
class FileAppender:&lt;br /&gt;
def __init__(self, filename, rotation = &lt;br /&gt;
ROTATE_NONE):&lt;br /&gt;
""" **(private)** Class initalization &amp;amp; &lt;br /&gt;
customization. """&lt;/p&gt;
&lt;p&gt;import string&lt;br /&gt;
#self.__FileAppender_filename = sub("\$HOME",&lt;br /&gt;
get_homedirectory(), filename)&lt;br /&gt;
self.__FileAppender_filename = string.&lt;br /&gt;
replace(filename,'$HOME',get_homedirectory() )&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;-- Here is error report&lt;br /&gt;
F:\My Downloads\Programowanko\Skrypty\Python\biblioteki &lt;br /&gt;
mniej wazne\log4py-1.3&amp;gt;log4py-test.py&lt;br /&gt;
Settings from log4py.conf&lt;/p&gt;
&lt;p&gt;12.12.2005 10:03:50.281 ERROR log4pytest [run] - error&lt;br /&gt;
12.12.2005 10:03:50.296 WARNING log4pytest [run] - warn&lt;br /&gt;
12.12.2005 10:03:50.296 INFO log4pytest [run] - info&lt;br /&gt;
12.12.2005 10:03:50.296 DEBUG log4pytest [run] - debug&lt;/p&gt;
&lt;p&gt;Normal level - Long format (written to $HOME/log4py-&lt;br /&gt;
test.log)&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File "F:\My &lt;br /&gt;
Downloads\Programowanko\Skrypty\Python\biblioteki mniej &lt;br /&gt;
wazne\log4py-1.3\log4py-test.py", line 29, in ?&lt;br /&gt;
mytest.run()&lt;br /&gt;
File "F:\My &lt;br /&gt;
Downloads\Programowanko\Skrypty\Python\biblioteki mniej &lt;br /&gt;
wazne\log4py-1.3\log4py-test.py", line 14, in run&lt;br /&gt;
self.log4py.error("error")&lt;br /&gt;
File "F:\My &lt;br /&gt;
Downloads\Programowanko\Skrypty\Python\biblioteki mniej &lt;br /&gt;
wazne\log4py-1.3\log4py.py", line 349, in error&lt;br /&gt;
self.__Logger_showmessage(message, MSG_ERROR)&lt;br /&gt;
File "F:\My &lt;br /&gt;
Downloads\Programowanko\Skrypty\Python\biblioteki mniej &lt;br /&gt;
wazne\log4py-1.3\log4py.py", line 524, in __Logger&lt;br /&gt;
_showmessage&lt;br /&gt;
target.writeline(line)&lt;br /&gt;
File "F:\My &lt;br /&gt;
Downloads\Programowanko\Skrypty\Python\biblioteki mniej &lt;br /&gt;
wazne\log4py-1.3\log4py.py", line 593, in writelin&lt;br /&gt;
e&lt;br /&gt;
self.write("%s\n" % text)&lt;br /&gt;
File "F:\My &lt;br /&gt;
Downloads\Programowanko\Skrypty\Python\biblioteki mniej &lt;br /&gt;
wazne\log4py-1.3\log4py.py", line 587, in write&lt;br /&gt;
file = open(self.__FileAppender_filename, "a")&lt;br /&gt;
IOError: [Errno 2] No such file or directory: 'C:&lt;br /&gt;
\\Documents and Settings\teko/log4py-test.log'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 12 Dec 2005 09:30:28 -0000</pubDate><guid>https://sourceforge.net1aaa6e6cb719ad3f74b634724b95ecdc9db6ae56</guid></item><item><title>Patch to make log4py work without $HOME</title><link>https://sourceforge.net/p/log4py/patches/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Running a CGI-script written in python fails if log4py&lt;br /&gt;
is included because $HOME is not set.&lt;/p&gt;
&lt;p&gt;This patch sets home_directory to '/' if $HOME is not set.&lt;/p&gt;
&lt;p&gt;Eivind&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eivind Tagseth</dc:creator><pubDate>Wed, 25 Sep 2002 13:32:31 -0000</pubDate><guid>https://sourceforge.net490077c54c845d156affd6cd89bda768424529e9</guid></item><item><title>Adds NDC and setup files</title><link>https://sourceforge.net/p/log4py/patches/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Added a light version of Log4J's 'NDC', nested&lt;br /&gt;
diagnostic context.&lt;/p&gt;
&lt;p&gt;Added pre-cache of loglevels by ClassID to conf file&lt;br /&gt;
and log4py class.&lt;/p&gt;
&lt;p&gt;Added NDC tests to log4j-test.py&lt;/p&gt;
&lt;p&gt;Added setup.py using distutils&lt;br /&gt;
Attached file contains two tarballs:&lt;br /&gt;
1) patch files to apply to log4py-0.5&lt;br /&gt;
2) pre-patched files&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bruce Kroeze</dc:creator><pubDate>Tue, 06 Nov 2001 18:36:49 -0000</pubDate><guid>https://sourceforge.net2f0c342c8af9bd98132369bacd6e09e9131f7193</guid></item><item><title>Added log4j style singleton class</title><link>https://sourceforge.net/p/log4py/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Extends Log4py to work much more quickly by only&lt;br /&gt;
reading the config file once.&lt;/p&gt;
&lt;p&gt;This is much more similar to the way that log4j works,&lt;br /&gt;
where Category is a singleton&lt;br /&gt;
which parses its config, and you get instances of&lt;br /&gt;
Categories for your java classes.&lt;/p&gt;
&lt;p&gt;This class also has the added benefit of being safe to&lt;br /&gt;
use with sys.stderr&lt;/p&gt;
&lt;p&gt;To use, you would generally do something like this:&lt;br /&gt;
--------&lt;br /&gt;
from sharedlog import sharedlog&lt;/p&gt;
&lt;p&gt;class foo:&lt;br /&gt;
def __init__(self):&lt;br /&gt;
log = sharedlog().get_instance(self)&lt;/p&gt;
&lt;p&gt;--------&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bruce Kroeze</dc:creator><pubDate>Sun, 21 Oct 2001 04:56:34 -0000</pubDate><guid>https://sourceforge.net6cae8a349f091000e94de8046467e793671a5fcc</guid></item></channel></rss>