tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/13231-best-approach-for-logging-from-viewsRobotlegs: Discussion 2015-11-30T16:07:44Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/382579982015-10-21T15:52:46Z2015-10-21T15:52:46ZBest approach for logging from views<div><p>Hi Jakub!</p>
<p>Not sure how you'd expect to pass a logger to the view instead
of the ways you've mentioned.<br>
There is of course the option of injecting the logger into the
mediator and setting it on the view, but that's not what you're
looking for, I guess.</p>
<p>Concerning the removal / disabling of the logger, for example
when you want to deploy a release build of your application, you
can simply set the log level to zero in your context config
class:</p>
<pre>
<code>context.logLevel = 0;</code>
</pre>
<p>Does that answer your question?</p>
<p>Ondina</p></div>Ondina D.F.