added an example for logging
Showing
1 changed file
with
10 additions
and
0 deletions
samples/logcolor.js
0 → 100644
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(); |
-
Please register or sign in to post a comment