Commit 58fc30eb 58fc30eb33c24defd267aeb862f3170487222fd6 by Nicolas Perriault

added an example for logging

1 parent 6bf71011
1 phantom.injectJs('casper.js');
2 var casper = new phantom.Casper({
3 verbose: true,
4 logLevel: 'debug'
5 })
6 casper.log('this is a debug message', 'debug');
7 casper.log('and an informative one', 'info');
8 casper.log('and a warning', 'warning');
9 casper.log('and an error', 'error');
10 casper.exit();