Book Image

Learning the Yahoo! User Interface library

By : Dan Wellman
Book Image

Learning the Yahoo! User Interface library

By: Dan Wellman

Overview of this book

<p>The Yahoo! User Interface (YUI) Library is a set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML, and AJAX. The YUI Library also includes several core CSS resources. All components in the YUI Library have been released as open source under a BSD license and are free for all uses.<br /><br />This book covers all released components whether utility, control, core file, or CSS tool.&nbsp; Methods of the YAHOO Global Object are used and discussed throughout the book.<br />The basics of each control will be presented, along with a detailed example showing its use to create complex, fully featured, cross-browser, Web 2.0 user interfaces.<br /><br />Besides giving you a deep understand of the YUI library, this book will expand your knowledge of object-oriented JavaScript programming, as well as strengthen your understanding of the DOM and CSS.<br /><br />You will learn to create a number of powerful JavaScript controls that can be used straight away in your own applications.</p>
Table of Contents (14 chapters)
Learning the Yahoo! User Interface Library
Credits
About the Author
Preface

Chapter 10. Advanced Debugging with Logger

Unlike the rest of the library, the Logger is not an Interface control that is designed to be used in production applications. The Logger control is just for you, the developer, to assist you primarily in the design phase of your site or application, but also in maintenance or upgrade phases as and when required.

Like any of the controls provided by the library, Logger is both easy to implement and easy to use. It provides a mechanism for both the writing and reading of log messages generated by your application at key moments during its use.

JavaScript provides no console support natively. It is usually left to the browser or interpreting environment to manage and report runtime errors, and as I'm sure you're aware, browsers don't always provide as robust or intelligible results that we as developers would like!

The Purpose of Logger

The Logger has been built to be used directly in connection with the debug.js versions of each individual library...