Logging recognition events
Contents
[
Hide
]
Aspose.OCR for Java can show recognition progress in the console or log it to a file. The logging is activated and configured with a static Logging
class. You can use the following properties to activate logging and specify its parameters:
Property | Type | Description |
---|---|---|
Logging.console |
bool |
Set to true to enable the display of recognition progress in the console. |
Logging.fileSystem |
bool |
Set to true to write recognition progress to a file specified in Logging.logFilePath property. |
Logging.logFilePath |
string |
Specify an absolute or relative path to the log file. Applicable only when the Logging.fileSystem property is set to true . |
Logging.loggingLevel |
LoggingLevel |
Specify the log severity. See Log severity levels for details. |
Log severity levels
You can configure the log severity by specifying one of the following values in Logging.loggingLevel
property:
Severity | Value | Description |
---|---|---|
LoggingLevel.Error |
2 | Error events of considerable importance that will affect normal program execution. |
LoggingLevel.Warning |
1 | Potentially harmful situations that might still allow the application to continue running. |
LoggingLevel.Debug |
0 | Detailed trace messages useful for application developers. |
LoggingLevel.None |
3 | No logging. Works the same as turning off logging with Logging.console and Logging.fileSystem parameters. |