warn

void log.warn ( 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.warn( "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
  • error() [log] - Sends a message to the log as a error message
  • logWarn() [session] - Write message to the log as a warning message
  • log() [log] - Write message to the log
  • log() [session] - Write message to the log