whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Mention .irbrc file
Date Fri, 22 May 2020 16:28:59 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new cc9e2bf  Mention .irbrc file
cc9e2bf is described below

commit cc9e2bffc52f2013eda2b79f328c7b68d68e006e
Author: Sebb <sebb@apache.org>
AuthorDate: Fri May 22 17:28:42 2020 +0100

    Mention .irbrc file
---
 DEVELOPMENT.md | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md
index 9e99038..098870e 100644
--- a/DEVELOPMENT.md
+++ b/DEVELOPMENT.md
@@ -368,6 +368,18 @@ The following alias runs Interactive Ruby (irb) with the Whimsy library
preloade
 
     alias wrb='irb -I /srv/whimsy/lib -r whimsy/asf'
 
+To control Wunderbar logging, it may be useful to create the following file:
+
+```$ cat ~/.irbrc
+require 'pp' # if desired
+# Set up Wunderbar logging if running wrb
+if $LOAD_PATH.include?("/srv/whimsy/lib") # using wrb?
+  puts "#{__FILE__} - setting log_level=info"
+  require 'wunderbar' # it has not been loaded yet
+  Wunderbar.log_level="info"
+end
+```
+
 Simple shell scripts can use the following:
 
     #!/usr/bin/env ruby


Mime
View raw message