error
void log.error ( 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.
log.error( "Inserting extracted data into the database." );
log.error( "Inserting extracted data into the database." );
See Also
- info() [log] - Sends a message to the log as an informative message
- debug() [log] - Sends a message to the log as a debugging message
- warn() [log] - Sends a message to the log as an warning message
- logError() [session] - Sends a message to the log as an error message
- log() [log] - Write message to the log
- log() [session] - Sends a message to the log
samt on 02/29/2016 at 11:51 am
- Printer-friendly version
- Login or register to post comments