[Logging-commits] r57 - www

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Fri Nov 12 13:52:40 CET 2010


Author: mariotomo
Date: 2010-11-12 13:52:40 +0100 (Fri, 12 Nov 2010)
New Revision: 57

Added:
   www/user_hints.php
   www/user_hints.shtml
Removed:
   www/integration_with_R.php
   www/integration_with_R.shtml
Log:
adding Henrico's hints to the web site.


Deleted: www/integration_with_R.php
===================================================================
--- www/integration_with_R.php	2010-11-12 12:52:07 UTC (rev 56)
+++ www/integration_with_R.php	2010-11-12 12:52:40 UTC (rev 57)
@@ -1,18 +0,0 @@
-<html>
-<head>
-<title>tutorial : hierarchical loggers</title>
-<link href="additions.css" rel="stylesheet" type="text/css" />
-</head>
-<body>
-
-<blockquote>
-<p>
-<a href="sample_session.php">[back to the tutorial]</a> &nbsp;
-</p>
-</blockquote>
-
-
-<?php include("user_hints.shtml"); ?> 
-
-</body>
-</html>

Deleted: www/integration_with_R.shtml
===================================================================
--- www/integration_with_R.shtml	2010-11-12 12:52:07 UTC (rev 56)
+++ www/integration_with_R.shtml	2010-11-12 12:52:40 UTC (rev 57)
@@ -1,24 +0,0 @@
-
-<h4>integration with R</h4>
-
-<blockquote><font size=-1>thanks Henrico Witvliet for this hint</font></blockquote>
-
-<p>you can instruct R to send its text to a logger using the function
-<tt>withCallingHandlers</tt>.  combine this with
-<tt>options(warn=-1)</tt> and you have replaced the R built in
-warning logic with the logging package.
-
-<p>imagine you want all warnings in function <tt>F</tt> go to
-logger <tt>L</tt>, you use this construction:
-
-<p><code>
-withCallingHandlers(F(), <br/>
-&nbsp; &nbsp; <R-reserved>warning</R-reserved>=<R-reserved>function</R-reserved>(w) { logwarn(w, logger=L) })
-</code>
-
-<p>try it with, for example, <tt>log(-1)</tt>.
-
-<p><code>
-> <user>withCallingHandlers(log(-1), warning = function(w){logwarn(w, logger='mylogger')})</user><br/>
-2010-11-03 09:24:04 WARNING:mylogger:simpleWarning in log(-1): NaNs produced
-</code>

Copied: www/user_hints.php (from rev 56, www/integration_with_R.php)
===================================================================
--- www/user_hints.php	                        (rev 0)
+++ www/user_hints.php	2010-11-12 12:52:40 UTC (rev 57)
@@ -0,0 +1,18 @@
+<html>
+<head>
+<title>tutorial : hierarchical loggers</title>
+<link href="additions.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+
+<blockquote>
+<p>
+<a href="sample_session.php">[back to the tutorial]</a> &nbsp;
+</p>
+</blockquote>
+
+
+<?php include("user_hints.shtml"); ?> 
+
+</body>
+</html>

Copied: www/user_hints.shtml (from rev 55, www/integration_with_R.shtml)
===================================================================
--- www/user_hints.shtml	                        (rev 0)
+++ www/user_hints.shtml	2010-11-12 12:52:40 UTC (rev 57)
@@ -0,0 +1,24 @@
+
+<h4>integration with R</h4>
+
+<blockquote><font size=-1>thanks Henrico Witvliet for this hint</font></blockquote>
+
+<p>you can instruct R to send its text to a logger using the function
+<tt>withCallingHandlers</tt>.  combine this with
+<tt>options(warn=-1)</tt> and you have replaced the R built in
+warning logic with the logging package.
+
+<p>imagine you want all warnings in function <tt>F</tt> go to
+logger <tt>L</tt>, you use this construction:
+
+<p><code>
+withCallingHandlers(F(), <br/>
+&nbsp; &nbsp; <R-reserved>warning</R-reserved>=<R-reserved>function</R-reserved>(w) { logwarn(w, logger=L) })
+</code>
+
+<p>try it with, for example, <tt>log(-1)</tt>.
+
+<p><code>
+> <user>withCallingHandlers(log(-1), warning = function(w){logwarn(w, logger='mylogger')})</user><br/>
+2010-11-03 09:24:04 WARNING:mylogger:simpleWarning in log(-1): NaNs produced
+</code>



More information about the Logging-commits mailing list