Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
58fc30eb
...
58fc30eb33c24defd267aeb862f3170487222fd6
authored
2011-12-04 11:34:10 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added an example for logging
1 parent
6bf71011
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
samples/logcolor.js
samples/logcolor.js
0 → 100644
View file @
58fc30e
phantom
.
injectJs
(
'casper.js'
);
var
casper
=
new
phantom
.
Casper
({
verbose
:
true
,
logLevel
:
'debug'
})
casper
.
log
(
'this is a debug message'
,
'debug'
);
casper
.
log
(
'and an informative one'
,
'info'
);
casper
.
log
(
'and a warning'
,
'warning'
);
casper
.
log
(
'and an error'
,
'error'
);
casper
.
exit
();
Please
register
or
sign in
to post a comment