<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Tue, 09 Jun 2026 19:14:25 +0000</lastBuildDate>
    <item>
      <title>(Python) Singleton Logger (logging) - Menda</title>
      <link>https://snipplr.com/view/28039/singleton-logger-logging</link>
      <description>&lt;p&gt;To use it, just change PATH and LOG_FILENAME in the source so that you save your .log file wherever you want.&#13;
&#13;
Then just do:&#13;
&#13;
foo = Logger("foo")&#13;
&#13;
bar = Logger("bar")  &#13;
&#13;
foo.debug("debugging foo :D")&#13;
&#13;
bar.info("informing bar :P")&lt;/p&gt;</description>
      <pubDate>Tue, 09 Feb 2010 10:17:39 UTC</pubDate>
      <guid>https://snipplr.com/view/28039/singleton-logger-logging</guid>
    </item>
    <item>
      <title>(C) Replace substring with other string - Menda</title>
      <link>https://snipplr.com/view/22561/replace-substring-with-other-string</link>
      <description>&lt;p&gt;The original string (str) will be changed after calling this function, so if you need it make a copy of it.&lt;/p&gt;</description>
      <pubDate>Thu, 05 Nov 2009 05:47:21 UTC</pubDate>
      <guid>https://snipplr.com/view/22561/replace-substring-with-other-string</guid>
    </item>
  </channel>
</rss>
