log

void session.log ( String message )

Description

Write message to the log.

Parameters

  • message Message to be written to the log, as a string

Return Values

Returns void. If an error occurs due to the type of message, it will first type to address the issue and upon not being able to resolve the issue an error will be thrown.

Change Log

Version Description
4.5 Available for all editions.

When the workbench is running, this will be found under the log tab for the scraping session. When screen-scraper is running in server mode, the message will get sent to the corresponding .log file found in screen-scraper's log folder. When screen-scraper is invoked from the command line, the message will get sent to standard out.

Examples

Write to Log

 // Sends the message to the log.
 session.log( "Inserting extracted data into the database." );