getLoggingLevel
int session.getLoggingLevel ( )
Description
Get the logging level of the scrape.
Parameters
This method does not receive any parameters.
Return Values
Returns the logging level, as an integer. Currently there are four levels: 1 = Debug, 2 = Info, 3 = Warn, 4 = Error.
Change Log
Version | Description |
---|---|
5.0.1a | Introduced for all editions. |
Examples
Set Logging Level If Low
// 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
- setLoggingLevel() [session] - Sets the logging level
scraper on 08/13/2010 at 1:04 pm
- Printer-friendly version
- Login or register to post comments