/*1* inspect.js: Plugin responsible for attaching inspection behavior using `cliff` and `eyes`.2*3* (C) 2011, Nodejitsu Inc.4* MIT LICENSE5*6*/78//9// ### Name this plugin10//11exports.name = 'inspect';1213//14// ### function init (done)15// #### @done {function} Continuation to respond to when complete.16// Attaches inspection behavior through `cliff` and `eyes`.17//18exports.init = function (done) {19var namespace = 'default',20app = this;2122if (app.options['inspect'] && app.options['inspect'].namespace) {23namespace = app.options['inspect'].namespace;24}2526app.inspect = require('cliff');27app.inspect.logger = app.log.get('namespace');28done();29};3031//32// ### function detact()33// Removes inspection behavior exposed by this plugin.34//35exports.detach = function () {36if (this.inspect) {37delete this.inspect;38}39};4041