helma.loggingThe helma.logging module provides logging functionality using Apache log4j. helma.logging can be configured by passing a log4j XML or properties configuration file to the setConfig() method. The default configuration is file modules/helma/log4j.properties. Helma provides a special Appender class called org.helma.util.RhinoAppender that allows to send log messages to a Javascript callback function. The logging module provides the methods enableResponseLog() and disableResponseLog() to enable and disable appending of RhinoAppender log messages to a response buffer, using similar formatting as res.debug in Helma 1.
Then the following code ...
... will produce the following output on the rendered page: 3300 [pool-1-thread-2] INFO modulename - Hello world!
3303 [pool-1-thread-2] ERROR modulename - ReferenceError: "foo" is not defined.
Script Stack<javascript stack trace>Java Stack<java stack trace>Pages linking to this page: Release 0.2 |
navigation
Download
Community
Weblog
Mailing Lists
IRC Channel
Documentation
Introductions
Tools
Reference
Project
Roadmap
Bug Reporting
Source
Helma NG Wiki
Wiki
Tags
Updates
Related Projects
Sites using Helma
Shop
search
tags for this page
all tags
Tagsapps (1) bugs (2) class (1) community (2) compatibility (1) concurrency (1) continuations (2) Documentation (6) dogfood (1) formatting (1) functions (1) gobi (1) helma (7) helma 1.6 (13) helma 1.7 (8) helma 1.x (1) helma 2 (11) helma ng (20) hopobject (1) howto sample code xml-rpc (1) html (1) inheritance (5) introspection (1) java (3) javascript (5) jetty (1) JSDoc (1) lazy (1) marius person (1) metaprogramming (3) modules (5) oop (1) organization (2) ORM (2) parsing (1) plugins (1) project (2) projects (1) prototype (2) prototype scope rhino functions this (0) Rabbit (2) Reference (1) REPL (1) rhino (5) roadmap (3) scope (1) shell (1) shop (0) Skin Rendering (5) Snippets (1) source svn (1) sugar (3) templates (13) testing (5) this (1) Tobi (7) xml (1) Pages linking to this page: Wiki Overview Text Draft, wiki pages linking here
|