Labs/Jetpack/API: Difference between revisions
Jump to navigation
Jump to search
(Created page with '= JetPack API Reference = JetPack is a project to explore new and innovative approaches to extensibility of the browser. === Logger === <source lang=cpp>#include <iostream> i...') |
(→Logger) |
||
Line 4: | Line 4: | ||
'''Logger''' | |||
Used to output debugging information, it appears in the Javascript Error Console. You can access it from the Tools menu. | |||
< | * <code>log( message )</code> or <code>log({message: string})</code>. Shows a log message in the Error Console. | ||
* <code>debug( message )</code> or <code>debug({message: string})</code>. Shows a debug message in the Error Console. | |||
* <code>info( message )</code> or <code>info({message: string})</code>. Shows an info message in the Error Console. | |||
* <code>warn( message )</code> or <code>warn({message: string})</code>. Shows a warning in the Error Console. | |||
}</ | * <code>error( message )</code> or <code>error({message: string})</code>. Shows an error message in the Error Console. |
Revision as of 08:00, 27 April 2009
JetPack API Reference
JetPack is a project to explore new and innovative approaches to extensibility of the browser.
Logger
Used to output debugging information, it appears in the Javascript Error Console. You can access it from the Tools menu.
log( message )
orlog({message: string})
. Shows a log message in the Error Console.debug( message )
ordebug({message: string})
. Shows a debug message in the Error Console.info( message )
orinfo({message: string})
. Shows an info message in the Error Console.warn( message )
orwarn({message: string})
. Shows a warning in the Error Console.error( message )
orerror({message: string})
. Shows an error message in the Error Console.