a logging package emulating the python logging package.
What you find here behaves similarly to what you also find in Python. This includes hierarchic loggers, multiple handlers at each logger, the possibility to specify a formatter for each handler (one default formatter is given), same levels (names and numeric values) as Python's logging package, a simple logging.BasicConfig function to quickly put yourself in a usable situation...
This package owes a lot to my employer, r-forge, the stackoverflow community, Brian Lee Yung Rowe's futile package (v1.1) and the documentation of the Python logging package.
|Depends:||R (>= 2.9.2)|
|Built:||R 2.9.2; ; 2010-01-27 12:24:58 UTC; unix|
1 2 3 4 5 6
to use this package, include logging instructions in your code, possibly like this:
1 2 3 4 5
basicConfig function adds a console handler to the root
logger, while the explicitly called
addHandler adds a file
handler to the 'company' logger. the effect of the above example is two
lines on the console and just one line in the
the web pages for this package on r-forge are kept decently up to date and contain a usable tutorial. check the references.
Mario Frasca <firstname.lastname@example.org>
Maintainer: Mario Frasca <email@example.com>
the python logging module: http://docs.python.org/library/logging.html
this package at r-forge: http://logging.r-forge.r-project.org/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.