<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/logging</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 15:53:47 GMT</pubDate>
<item>
<title>(PHP) Custom Logging Site Events - COBOLdinosaur</title>
<link>http://snipplr.com/view/69663/custom-logging-site-events/</link>
<description><![CDATA[ <p>To keep up on important incidents on your site without having to dig through server logs the alternative can be custom logs.</p> ]]></description>
<pubDate>Sun, 27 Jan 2013 07:45:21 GMT</pubDate>
<guid>http://snipplr.com/view/69663/custom-logging-site-events/</guid>
</item>
<item>
<title>(Python) Redirect Scrapy log messages to standard Python logger - scrapy</title>
<link>http://snipplr.com/view/67000/redirect-scrapy-log-messages-to-standard-python-logger/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 01 Sep 2012 07:15:28 GMT</pubDate>
<guid>http://snipplr.com/view/67000/redirect-scrapy-log-messages-to-standard-python-logger/</guid>
</item>
<item>
<title>(PHP) Event Logger - evinweissenberg</title>
<link>http://snipplr.com/view/66801/event-logger/</link>
<description><![CDATA[ <p>Append Log Event to a .csv file.</p> ]]></description>
<pubDate>Sat, 18 Aug 2012 09:02:25 GMT</pubDate>
<guid>http://snipplr.com/view/66801/event-logger/</guid>
</item>
<item>
<title>(PHP) PHP Simple Logger - ryantxr</title>
<link>http://snipplr.com/view/65604/php-simple-logger/</link>
<description><![CDATA[ <p>This is a really simple logger that can be thrown into any project.</p> ]]></description>
<pubDate>Thu, 14 Jun 2012 01:34:38 GMT</pubDate>
<guid>http://snipplr.com/view/65604/php-simple-logger/</guid>
</item>
<item>
<title>(Ruby) Ruby class and instance variables lifecycle across inheritance demo - m1b</title>
<link>http://snipplr.com/view/57956/ruby-class-and-instance-variables-lifecycle-across-inheritance-demo/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 18 Aug 2011 03:04:31 GMT</pubDate>
<guid>http://snipplr.com/view/57956/ruby-class-and-instance-variables-lifecycle-across-inheritance-demo/</guid>
</item>
<item>
<title>(PHP) LDG)PHP Log class - Darksider3</title>
<link>http://snipplr.com/view/57133/ldgphp-log-class/</link>
<description><![CDATA[ <p>A Class to Logging false logins and more...</p> ]]></description>
<pubDate>Tue, 26 Jul 2011 02:17:03 GMT</pubDate>
<guid>http://snipplr.com/view/57133/ldgphp-log-class/</guid>
</item>
<item>
<title>(PHP) Error Logger - BenJD</title>
<link>http://snipplr.com/view/49418/error-logger/</link>
<description><![CDATA[ <p>Log errors to a file</p> ]]></description>
<pubDate>Tue, 22 Feb 2011 22:19:43 GMT</pubDate>
<guid>http://snipplr.com/view/49418/error-logger/</guid>
</item>
<item>
<title>(C#) Log message to file - jwwest</title>
<link>http://snipplr.com/view/47475/log-message-to-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 19 Jan 2011 08:00:39 GMT</pubDate>
<guid>http://snipplr.com/view/47475/log-message-to-file/</guid>
</item>
<item>
<title>(C#) String extension useful for logging - ronklein</title>
<link>http://snipplr.com/view/46237/string-extension-useful-for-logging/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 29 Dec 2010 21:35:10 GMT</pubDate>
<guid>http://snipplr.com/view/46237/string-extension-useful-for-logging/</guid>
</item>
<item>
<title>(Rails) easy-to-find logger.info output (rails) - insanedreamer</title>
<link>http://snipplr.com/view/36729/easytofind-loggerinfo-output-rails/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 06 Jul 2010 09:02:27 GMT</pubDate>
<guid>http://snipplr.com/view/36729/easytofind-loggerinfo-output-rails/</guid>
</item>
<item>
<title>(Bash) standard logging from script - evertwh</title>
<link>http://snipplr.com/view/30302/standard-logging-from-script/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 26 Mar 2010 03:13:29 GMT</pubDate>
<guid>http://snipplr.com/view/30302/standard-logging-from-script/</guid>
</item>
<item>
<title>(Python) Singleton Logger (logging) - Menda</title>
<link>http://snipplr.com/view/28039/singleton-logger-logging/</link>
<description><![CDATA[ <p>To use it, just change PATH and LOG_FILENAME in the source so that you save your .log file wherever you want.

Then just do:

foo = Logger("foo")

bar = Logger("bar")  

foo.debug("debugging foo :D")

bar.info("informing bar :P")</p> ]]></description>
<pubDate>Tue, 09 Feb 2010 10:17:39 GMT</pubDate>
<guid>http://snipplr.com/view/28039/singleton-logger-logging/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to clean out old temp files and logfiles - noah</title>
<link>http://snipplr.com/view/27987/howto-set-up-a-rake-task-to-clean-out-old-temp-files-and-logfiles/</link>
<description><![CDATA[ <p>If you don't see a particular extension in the CLEAN list, test before you add it.  Common temporary file extensions like `~` are cleaned by default.</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 21:56:37 GMT</pubDate>
<guid>http://snipplr.com/view/27987/howto-set-up-a-rake-task-to-clean-out-old-temp-files-and-logfiles/</guid>
</item>
<item>
<title>(Java) Snippet of Log,Logfactory declaration in class - ff1959</title>
<link>http://snipplr.com/view/26999/snippet-of-loglogfactory-declaration-in-class/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 25 Jan 2010 06:48:41 GMT</pubDate>
<guid>http://snipplr.com/view/26999/snippet-of-loglogfactory-declaration-in-class/</guid>
</item>
<item>
<title>(Bash) Log4r: how to use RollingFileOutputter: automatically cycle stale logfiles - noah</title>
<link>http://snipplr.com/view/26962/log4r-how-to-use-rollingfileoutputter-automatically-cycle-stale-logfiles/</link>
<description><![CDATA[ <p>(Log4r::RollingFileOutputter)(http://log4r.sourceforge.net/rdoc/files/log4r/formatter/formatter_rb.html) automatically renames/archives log files once they get too big or too old.

This is not my code, I found it [in Google's cache](http://74.125.93.132/search?q=cache:NH-CfIj0MhQJ:omf.mytestbed.net/repositories/entry/omf/branches/reorg/log4r-1.0.5/examples/fileroll.rb%3Fformat%3Draw%26rev%3D89+log4r+rollingfileoutputter) and I found it useful, so I figured I should preserve it.  If you're the author, get in touch and I'll credit/link you (and thanks!)</p> ]]></description>
<pubDate>Sun, 24 Jan 2010 15:18:50 GMT</pubDate>
<guid>http://snipplr.com/view/26962/log4r-how-to-use-rollingfileoutputter-automatically-cycle-stale-logfiles/</guid>
</item>
<item>
<title>(Objective C) NSLog log function name, file name and line number - BenClayton</title>
<link>http://snipplr.com/view/26758/nslog-log-function-name-file-name-and-line-number/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 20 Jan 2010 10:26:03 GMT</pubDate>
<guid>http://snipplr.com/view/26758/nslog-log-function-name-file-name-and-line-number/</guid>
</item>
<item>
<title>(C#) Get the Namespace, Class Name, and Method Name of the Currently Executing Method Via Reflection - rengber</title>
<link>http://snipplr.com/view/26471/get-the-namespace-class-name-and-method-name-of-the-currently-executing-method-via-reflection/</link>
<description><![CDATA[ <p>GetFrame(1) to avoid the last method being this property accessor.  
Note that in a child class inherited member, the Class name will be the name of the type containing the implementation.</p> ]]></description>
<pubDate>Thu, 14 Jan 2010 15:09:24 GMT</pubDate>
<guid>http://snipplr.com/view/26471/get-the-namespace-class-name-and-method-name-of-the-currently-executing-method-via-reflection/</guid>
</item>
<item>
<title>(C#) Logging in .NET with NLog (default config file, catch all exceptions and route to logger, ...) - pckujawa</title>
<link>http://snipplr.com/view/24560/logging-in-net-with-nlog-default-config-file-catch-all-exceptions-and-route-to-logger-/</link>
<description><![CDATA[ <p>[NLog](http://nlog-project.org) is an awesome, simple logging solution for .NET. In the code below, there is an example entry into app.config (there are other methods for doing NLog config files, but I have found that this one works with ClickOnce deployments). There is also a snippet for catching and logging all exceptions in a WinForms application and one for a WPF application.

I also have a [question on stackoverflow](http://stackoverflow.com/questions/4091606/most-useful-nlog-configurations) with a lot of useful NLog configuration answers.</p> ]]></description>
<pubDate>Thu, 10 Dec 2009 12:33:48 GMT</pubDate>
<guid>http://snipplr.com/view/24560/logging-in-net-with-nlog-default-config-file-catch-all-exceptions-and-route-to-logger-/</guid>
</item>
<item>
<title>(Python) Merge twitter-logged files into one xml-file - mustam</title>
<link>http://snipplr.com/view/18928/merge-twitterlogged-files-into-one-xmlfile/</link>
<description><![CDATA[ <p>e.g.

$ twlogmerge.py twitter-log-user-dir
read file: twitter-log-user-dir/page001.xml
get status: id: 123456789
append status: accum.:1234
...
append status: accum.:3456
write file: twitter-log-user-dir-marged-20090828-130146.xml


*    cf. [Backup my twitter-log](http://snipplr.com/view/18925/backup-my-twitterlog/)

*    cf. [Stylesheet for twitter-log file](http://snipplr.com/view/18927/stylesheet-for-twitterlog-file/)</p> ]]></description>
<pubDate>Fri, 28 Aug 2009 00:10:43 GMT</pubDate>
<guid>http://snipplr.com/view/18928/merge-twitterlogged-files-into-one-xmlfile/</guid>
</item>
<item>
<title>(XSLT) Stylesheet for twitter-log file - mustam</title>
<link>http://snipplr.com/view/18927/stylesheet-for-twitterlog-file/</link>
<description><![CDATA[ <p>This is xslt file for twitter-logged xml file.

*    cf. [Backup my twitter-log](http://snipplr.com/view/18925/backup-my-twitterlog/)

*    cf. [Merge twitter-logged files into one xml-file](http://snipplr.com/view/18928/merge-twitterlogged-files-into-one-xmlfile/)</p> ]]></description>
<pubDate>Thu, 27 Aug 2009 22:39:36 GMT</pubDate>
<guid>http://snipplr.com/view/18927/stylesheet-for-twitterlog-file/</guid>
</item>
</channel>
</rss>