Documentation

Plugins/Claypool/logger

From jQuery JavaScript Library

Jump to: navigation, search

« Back to Plugins/Claypool

logger( category )

Retrieves or creates a category logger.
This plugin provides an efficient logging implementation that allows application components to log messages at 5 levels to a hierarchical category that can be tuned via app/configs/logging.js
Arguments:
categoryString
A dot-delimited name, usually the namespace of the class the logger is being used in.


Examples:
The logger is returned if any category configured in app/configs/logging.js matches, including the catch-all root category, otherwise a safe, efficient NullLogger instance is returned.

$.logger("MyApp.Controller.HelloController");

NameType