How to Generate Log File for Connector
By default, the connector outputs all information about submitting data into the Timeline to the console. You can configure this information to be logged to a text file.
We recommend that logging to file be configured when diagnosing problems and that unnecessary logging be removed when not actively being used. The log file can be useful when contacting technical support.
To configure logging, we suggest using Java Core Logging Facilities (java.util.logging) framework. To use logger, add the following parameter to the command line when starting the connector:
-Djava.util.logging.config.file=logging.properties
Then you can customize the logging configuration using the application programming interface (API) for the logger. For details, see the java.util.logging Package documentation: https://docs.oracle.com/javase/7/docs/api/java/util/logging/package-summary.html.
Example
- Go to the folder where the abbyy.timeline.dbms.client.jar file is located.
For example, C:\ABBYY\TimelineConnectorDBMS - Create a file named logging.properties that includes the following contents:
# Logger global settings
handlers=java.util.logging.FileHandler
.level=ALL
# File handler configuration
java.util.logging.FileHandler.level=INFO
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.limit=1000000
java.util.logging.FileHandler.pattern=log.log
java.util.logging.FileHandler.append=true
Note. For detailed information about the FileHandler class and its properties see https://docs.oracle.com/javase/7/docs/api/java/util/logging/FileHandler.html. - To use logger, add the following parameter to the command line when starting the connector:
-Djava.util.logging.config.file=logging.properties
Command line example: java -Djava.util.logging.config.file=logging.properties -Dlog4j2.formatMsgNoLookups=true -cp "*" abbyy.timeline.dbms.client.Program -s https://192.168.137.103 -t cmVwb3NpdG9yeTpENENzYy0ySkxpWWJzbTJDeWxILXlpMDBWLWp6Y3RNdEV3blJ0MHhQcTZERmlibU00ZGpWVHJFb0ZkekFFV1d4RHBaVWViZnhxdHNfWGVrMHVfSVFEdw== -d org.apache.hive.jdbc.HiveDriver -AcceptEula - The log.log file will be written to the connector's folder where abbyy.timeline.dbms.client.jar file is located. There will be logging information about all types of events that occur during the operation of the connector.
9/5/2024 4:23:54 PM