Plugins You can find out about all the publicly available Grails plugins.

Blackbird JavaScript Logging

  • Authors: Nick Hammond
0 vote
Dependency:
compile ":blackbird:0.3"

 Documentation

Summary

Installation

grails install-plugin blackbird

Description

Blackbird JavaScript Logging

This plugin provides the developer to access Blackbird logging resources.

This plugin is Resources compliant - http://www.grails.org/plugin/resources

Usage

Add the resources using one of the methods below. In your javascript, add

log.toggle();
log.debug( message );

where message is your message to output. log.toggle() is only required if the Visible on page load checkbox isn't checked.

see http://www.gscottolson.com/blackbirdjs/ for demos and usage suggestions, but generally there are two ways to implement:

1. In conjunction with Resources plugin

http://www.grails.org/plugin/resources
The bundle required to be added is blackbird or blackbird-dev

Use blackbird-dev to show JS and CSS non-minified

2. Standalone

In the head section of your gsp page, add
<blackbird resources />