Quiet Filtering¶
Log output can be superfluous when using the OEFilter
object in a more complex program. Since all the log output is written to
the OEThrow
object, the verbosity level can be lowered
by using the OEThrow.SetLevel
method. This example demonstrates setting the OEThrow
error level to OEErrorLevel.Warning
. This will only allow
messages at the level of Warning
or above to be emitted, thereby
silencing the OEFilter object’s logging output. The
-verbose
option can be used to change the OEThrow
error level.
Command Line Interface¶
A description of the command line interface can be obtained by executing the program with the –help argument.
prompt> java QuietFilter --help
will generate the following output:
Simple parameter list
filter options :
-filtertype : filter type
input/output options :
-in : Input filename
-out : Output filename
other options :
-verbose : Error level of messages
Code¶
Download code
See also
OEFilter
classOEConfigureFilterParams
andOEConfigureFilterType
functionsOEGetFilterType
functionOEErrorHandler class
Examples¶
prompt> java QuietFilter -in mcss.smi.gz -out .smi -filtertype Lead