Demo 1: Output all message types
log.debug('this is a debug message');
log.info('this is an info message');
log.warn('this is a warning message');
log.error('this is an error message');
(記得按F2把Blackbird顯示出來)
Demo 2: Collect and show local anchors
log.profile( 'local anchors' );
var anchors = document.getElementsByTagName( 'A' );
for ( var i = 0; i < anchors.length; i++ ) {
if ( anchors[ i ].name ) {
log.debug( anchors[ i ].name );
}
}
log.profile( 'local anchors' );
(記得按F2把Blackbird顯示出來)