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 );
}

See Also