[Masterview-users] Logging from within a directive

Deb Lewis
Mon, 12 Jun 2006 21:18:23 -0000

Ed - the next release of MasterView will support configuration settings for
both the flavor of logger used (Log4r, the default if available, or Logger
from the standard Ruby library), along with a log_level setting.

The current default log level is DEBUG from Logger, ALL from Log4r.  (their
logging level naming conventions are somewhat different, but both support
DEBUG, INFO, WARN, ERROR as standard levels)

We might want to modify the logger''s built-in defaults that we
currently
pick up so that the MasterView log is a bit smarter about choosing its
defaults, e.g., maybe DEBUG or ALL/ANY if development mode, WARN in
production.

~ Deb

-----Original Message-----
From: masterview-users-bounces at rubyforge.org
[mailto:masterview-users-bounces at rubyforge.org] On Behalf Of Ed Howland
Sent: Thursday, June 08, 2006 9:42 AM
To: masterview-users at rubyforge.org
Subject: [Masterview-users] Logging from within a directive

Hi,

I assume that the default logging level is Logger::DEBUG since by setting
that in init.rb, I get lots of log messages in the WEBrick console window,
like when the log level is not set. But if I put

Log.debug "content_str #{content_str}"

in my etag method of my directive, I don''t see any output in that same
window (or in log/development.log)

Any ideas?

TIA,
Ed



--
Ed Howland
http://greenprogrammer.blogspot.com
_______________________________________________
Masterview-users mailing list
Masterview-users at rubyforge.org