Where does YUI log output go?

Where does YUI log output go?

by Mike Finch -
Number of replies: 3

Moodle version 3.0.2

I just noticed some logging in a YUI module.  For example:

  Y.log( 'Howdy', 'info', 'moodle-report-fred' );

Where does that log output go? 

Average of ratings: -
In reply to Mike Finch

Re: Where does YUI log output go?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Browser console, if developer debug is on.

In reply to Tim Hunt

Re: Where does YUI log output go?

by Mike Finch -

Thanks, I did not even know I had a browser console.

For the benefit of other novices like me:

For Internet Explorer 11:

  1. In menu bar, goto:  Tools > F12 Developer Tools
  2. A docked child window appears at the bottom of the browser. 
  3. Click the "Console" tab.  That is where the output appears.
In reply to Tim Hunt

Re: Where does YUI log output go?

by Mike Finch -

For the benefit of other novices like me:

For Firefox:

  1. In the top toolbar, click the button on the far right that looks like 3 horizontal lines.
  2. Click the "Developer" button.
  3. Click "Web console".
  4. A docked child window appears at the bottom of the browser.
  5. Click the "console" tab.

Keyboard shortcut for Firefox:  Ctrl-Shift-K