com.opera.core.systems
Class OperaSettings.OperaLogging

java.lang.Object
  extended by com.opera.core.systems.OperaSettings.OperaLogging
Enclosing class:
OperaSettings

public class OperaSettings.OperaLogging
extends Object

Manages settings related to logging in OperaDriver and related processes, such as OperaRunner and Opera itself.


Constructor Summary
OperaSettings.OperaLogging()
           
 
Method Summary
 File getFile()
          Returns the logging file, if any, used by Opera.
 Level getLevel()
          Returns the logging level used in OperaDriver.
 void setFile(File file)
          Specifies the logging file to use for the OperaDriver loggers.
 void setLevel(Level level)
          Sets the logging level used in OperaDriver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperaSettings.OperaLogging

public OperaSettings.OperaLogging()
Method Detail

getLevel

public Level getLevel()
Returns the logging level used in OperaDriver. Note that the individual logging levels for sub-processes used within OperaDriver, such as OperaRunner and for Opera itself, might differ due to an unspecified heuristic of what the general desired level of chattiness the user wants based on the value set here.

Returns:
the logging level used

setLevel

public void setLevel(Level level)
Sets the logging level used in OperaDriver. For this to have any effect, it must be set before it is passed in to OperaDriver's constructor. Note that the individual logging levels for sub-processes used within OperaDriver, such as OperaRunner and for Opera itself, might differ due to an unspecified heuristic of what the general desired level of chattiness the user wants based on the value set here.

Parameters:
level - the logging level to use

getFile

public File getFile()
Returns the logging file, if any, used by Opera. If no logging file has been specified, it will return null.

Returns:
logging file used, or null

setFile

public void setFile(File file)
Specifies the logging file to use for the OperaDriver loggers. If no logging file is specified (null), logging to file is disabled. By default, the logging file will be appended.

Parameters:
file - logging file to use


Copyright © 2012. All Rights Reserved.