log
void session.log ( Object message )
Description
Write message to the log.
Parameters
- message Message to be written to the log after being converted to a String using String.valueOf( message ).
Return Values
Returns void.
Change Log
Version | Description |
---|---|
5.5 | Now accepts any Object as a message |
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." );
session.log( "Inserting extracted data into the database." );
See Also
- logDebug() [session] - Sends a message to the log as a debugging message
- logInfo() [session] - Sends a message to the log as an informative message
- logWarn() [session] - Sends a message to the log as a warning
- logError() [session] - Sends a message to the log as an error message
- log() [log] - Write message to the log
scraper on 07/16/2010 at 4:54 pm
- Printer-friendly version
- Login or register to post comments