YUI Library Home

Site Search (YDN & YUIBlog):

# YUI Library Examples: Logger Control

# Logger Control: Examples

The Logger Control provides a simple way to read or write log messages with a single line of code. With this control, you can tap into the rich event-driven messages included with the YUI Library's debug files. This messaging allows you to get a fuller picture of the inner workings of any YUI Library component. The Logger Control provides a simple messaging interface that allows you to filter, pause, resume, and clear log messages on your screen. Whether or not you invoke this UI, you can monitor log output via the FireBug extension for Firefox or via the Safari JavaScript console. The Logger Control supports logging messages with customizable categories and sources. Adventurous developers can extend Logger to build their own implementations to suit any requirement.

- Basic Logging: Demonstrates basic logging functionality.
- Configuring LogReader: LogReader configurations
- Using LogWriter: Use LogWriter to write logs from a custom source.
- Logger Integration with YUI Components: Point to the debug build of a YUI component to read built-in log messages with Logger.
- Skinning Model: Explanation of Logger's skinning model.

## Other YUI Examples That Make Use of the Logger Control

- Complex Application (included with examples for the Layout Manager)

### Logger Control:

- User's Guide (external)
- API Documentation
- Cheat Sheet PDF(external)

Copyright © 2010 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings