Helma Logging
hide
ContentsThis page gives an overview of the logging infrastructure provided by Helma. Creating log messages from Helma appsThe global app object provides several methods for generating log messages from Helma applications: Helma application and server logsJava logging frameworks usually separate logging output by class or package name of the originating class. Helma extends this scheme by adding one server log and several per-application logs. The server log is called "helma.server". The default application logs are the event log and the access log, called helma.<appname>.event and helma.appname.access, respectively. Additionally, Helma apps can be configured to log SQL statements issued by the Helma O/R layer using the logSql property in server.properties or app.properties:
Helma loggingHelma uses Apache Commons Logging to allow users to plug in different logging implementations. Helma comes with its own logging implementation, which is used by default and should be sufficient for many applications. It features asynchronous output for high performance logging, automatic daily log file rotation, and gzip compression of archived log files. Logging OutputHelma logging can be configured to log to files, which by default are located in the log subdirectory of the Helma installation, or to the console, which is useful during development. This is controlled using the logdir option in server.properties or app.properties, which contains the path of the directory in which to put the log files.
If the logdir property is set to "console", logging output will be written to standard output stream (java.lang.System.out).
If logdir is not set in system.properties or app.properties, log files will be written to the /log subdirectory of the Helma installation. Log LevelsApache Commons Logging supports six log levels: "trace", "debug", "info", "warn", "error" and "fatal". The default log level for Helma logging is "info", meaning that log messages with lower levels "debug" and "trace" will be ignored. The log level for Helma logging can be set using the helma.loglevel system property.
Apache log4jFor those applications that require extended logging features, Apache log4j is a very popular choice. There is a Howto document for setting up Helma with log4j. |
navigation
Download
Community
Weblog
Mailing Lists
IRC Channel
Documentation
Introductions
Tools
Reference
Project
Roadmap
Bug Reporting
Source
Wiki
Tags
Updates
Related Projects
Sites using Helma
Shop
search
all tags
Tagsapps (1) bugs (2) class (1) community (2) compatibility (1) concurrency (1) continuations (2) Documentation (4) Documentation ORM (1) dogfood (1) formatting (1) gobi (1) helma (6) helma 1.6 (13) helma 1.7 (8) helma 2 (13) helma ng (7) hopobject (1) html (1) inheritance (5) introspection (1) java (2) javascript (5) jetty (1) JSDoc (1) lazy (1) marius person (1) metaprogramming (2) modules (3) oop (1) organization (2) ORM (1) parsing (1) project (2) projects (1) prototype (1) Rabbit (2) REPL (1) rhino (4) roadmap (3) shell (1) shop (0) Skin Rendering (5) Snippets (1) source svn (1) sugar (3) templates (13) testing (4) Tobi (7) tobi repl shell introspection (0) xml (1) Pages linking to this page: Wiki Overview Text Draft |