Arjun Nagathankandy
Arjun Nagathankandy

Reputation: 725

CasperJS how to check verbose value (True or False) , Loglevel in casper js code

  1. I have a scenario like I need to check what is the current log level for the casperJS . Can I ?
  2. Can i introduce any custom log level in casperJS. I have gone through the documentation but I could not find any information.
    Thanks,
    Arjun N

Upvotes: 0

Views: 240

Answers (1)

Tobey
Tobey

Reputation: 1430

To check your current log level

casper.echo(casper.options.logLevel)

You can see what other attributes are available in the casper object using

casper.echo(Object.keys(casper))

As for adding your own log level. Have a look at the source code. add/edit the casper object appropriately

Upvotes: 1

Related Questions