setLoggingLevel
void session.setLoggingLevel ( int loggingLevel )
Description
Set the logging level of the scrape.
Parameters
- loggingLevel Level of logging that should be used, as an integer. It works best if you use the Notifiable interface in case levels are ever changed.
Return Values
Returns void.
Change Log
Version | Description |
---|---|
5.0.1a | Introduced for all editions. |
Examples
Set Logging Level
// get logging level
logLevel = session.getLoggingLevel();
if (logLevel < Notifiable.LEVEL_WARN )
{
session.setLoggingLevel( Notifiable.LEVEL_WARN );
}
logLevel = session.getLoggingLevel();
if (logLevel < Notifiable.LEVEL_WARN )
{
session.setLoggingLevel( Notifiable.LEVEL_WARN );
}
See Also
- getLoggingLevel() [session] - Returns the current logging level
scraper on 08/13/2010 at 1:10 pm
- Printer-friendly version
- Login or register to post comments