logWarn
void session.logWarn ( Object message ) (professional and enterprise editions only)
Description
Write message to the log, at the the warn level (third most verbose).
Parameters
- message Message to be written to the log after being converted to a String using String.valueOf( message ).
Return Values
Returns void. If an error occurs, an error will be thrown.
Change Log
Version | Description |
---|---|
5.5 | Now accepts any Object as a message |
4.5 | Available for professional and enterprise editions. |
Examples
Write to Log at Info level
// Sends the message to the third level of logging.
session.logWarn( "Warning! Received a 404 response." );
session.logWarn( "Warning! Received a 404 response." );
- log() [session] - Sends a message to the log as a debugging message
- logDebug() [session] - Sends a message to the log as a debugging message
- logInfo() [session] - Sends a message to the log as an informative message
- logError() [session] - Sends a message to the log as an error message
- warn() [log] - Sends a message to the log as an warning message
scraper on 07/16/2010 at 5:02 pm
- Printer-friendly version
- Login or register to post comments