View Jitterbit Developer Portal
Introduction
Verbose logging can be used in troubleshooting issues with certain Cloud Studio connectors when used with Private Agents. You may be asked by Jitterbit Support to enable verbose logging by following the steps on this page.
NOTE: The steps here should be used only when directed by Jitterbit Support.
Verbose logging is supported for the specific Cloud Studio connectors listed in this table. Use the name listed for a connector under Verbose Logging Connector Name when entering the connector name as described in Enabling Verbose Logging later on this page:
Cloud Studio Connector Name | Verbose Logging Connector Name |
---|---|
Amazon SQS | amazonsqs |
ANYMARKET | anymarket |
bigcommerce | |
Box | box |
bmchelixitsm | |
coupa | |
EDI for Cloud | edi |
Elasticsearch | elasticsearch |
epicorerp | |
GitHub | github |
hubspot | |
jira | |
Magazine Luiza Companies | magazineluizacompanies |
magento | |
Microsoft Teams | teams |
OData | odata |
PagerDuty | pagerduty |
Salesforce Einstein Analytics | einstein.analytics |
SendGrid | sendgrid |
ShipStation | shipstation |
shopify | |
slack | |
square | |
VTEX | vtex |
WooCommerce | woocommerce |
workday | |
workdayprismanalytics |
Enabling Verbose Logging
Enabling verbose logging requires access to each Private Agent in an Agent Group as verbose logging is not enabled by default. Each agent must have a properties file edited to enable verbose logging.
There is a different procedure for enabling verbose logging depending on the version of the agent. A Private Agent's version can be determined through the Management Console.
- Agent Version 10.34 and Earlier: Edit
log4j.properties
- Agent Version 10.35 and Later: Edit
logback.xml
Agent Version 10.34 and Earlier: Edit log4j.properties
To edit the log4j.properties
file:
- Make a backup of any files you are going to edit.
- Stop the agent:
- Linux: See Restart Agent in Installing a Jitterbit Harmony Linux Agent.
- Windows: See Restart Agent in Installing a Jitterbit Harmony Windows Agent.
- Find the
log4j.properties
file, as determined by the operating system and the location of Jitterbit home directory:- Linux:
/opt/jitterbit/tomcat/webapps/axis/WEB-INF/lib/log4j.properties
- Windows with a 32-bit Private Agent:
C:\Program Files (x86)\Jitterbit Agent\tomcat\webapps\axis\WEB-INF\lib\log4j.properties
- Windows with a 64-bit Private Agent:
C:\Program Files\Jitterbit Agent\tomcat\webapps\axis\WEB-INF\lib\log4j.properties
- Linux:
- Open the
log4j.properties
file in an editor. Find these lines:
. . . log4j.logger.org.springframework=WARN log4j.logger.org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl=ERROR # Debug options can be turned on by uncommenting these lines # . . .
Just before the line starting with
# Debug
, add the following line, replacing<connector_name>
with the verbose logging name of the connector. The appropriate name is listed in the Introduction earlier on this page:log4j.logger.org.jitterbit.connector.verbose.logging.<connector_name>=DEBUG
Using the Workday Prism Analytics connector as an example, its verbose logging name is
workdayprismanalytics
. This should then be the property file snippet:. . . log4j.logger.org.springframework=WARN log4j.logger.org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl=ERROR log4j.logger.org.jitterbit.connector.verbose.logging.workdayprismanalytics=DEBUG # Debug options can be turned on by uncommenting these lines # . . .
NOTE: Verbose logging can be used with multiple connectors. Add a separate line for each connector.
- Save the properties file and restart the agent:
- Linux: See Restart Agent in Installing a Jitterbit Harmony Linux Agent.
- Windows: See Restart Agent in Installing a Jitterbit Harmony Windows Agent.
Agent Version 10.35 and Later: Edit logback.xml
To edit the logback.xml
file:
- Make a backup of any files you are going to edit.
- Stop the agent:
- Linux: See Restart Agent in Installing a Jitterbit Harmony Linux Agent.
- Windows: See Restart Agent in Installing a Jitterbit Harmony Windows Agent.
- Find the
logback.xml
file, as determined by the operating system and the location of Jitterbit home directory:- Linux:
/opt/jitterbit/tomcat/webapps/axis/WEB-INF/lib/logback.xml
- Windows with a 32-bit Private Agent:
C:\Program Files (x86)\Jitterbit Agent\tomcat\webapps\axis\WEB-INF\lib\logback.xml
- Windows with a 64-bit Private Agent:
C:\Program Files\Jitterbit Agent\tomcat\webapps\axis\WEB-INF\lib\logback.xml
- Linux:
- Open the
logback.xml
file in an editor. Find the lines:
. . . <logger name="org.springframework" level="WARN"/> <logger name="org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl" level="ERROR"/> . . .
After those lines add the following line, replacing
<connector_name>
with the verbose logging name of the connector. The appropriate name is listed in the Introduction earlier on this page:<logger name="org.jitterbit.connector.verbose.logging.<connector_name>" level="DEBUG"/>
Using the Workday Prism Analytics connector as an example, its verbose logging name is
workdayprismanalytics
. This should then be the logback file snippet:. . . <logger name="org.springframework" level="WARN"/> <logger name="org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl" level="ERROR"/> <logger name="org.jitterbit.connector.verbose.logging.workdayprismanalytics" level="DEBUG"/> . . .
NOTE: Verbose logging can be used with multiple connectors. Add a separate line for each connector.
- Save the file and restart the agent:
- Linux: See Restart Agent in Installing a Jitterbit Harmony Linux Agent.
- Windows: See Restart Agent in Installing a Jitterbit Harmony Windows Agent.
Disabling Verbose Logging
To disable verbose logging for a connector when it is no longer needed, edit the appropriate file that was originally edited to enable verbose logging. You can leave the entries in the file and simply set the log level to off.
- Make a backup of any files you are going to edit.
- Stop the agent:
- Linux: See Restart Agent in Installing a Jitterbit Harmony Linux Agent.
- Windows: See Restart Agent in Installing a Jitterbit Harmony Windows Agent.
- Go to the appropriate properties file as described above for your agent version and open it in an editor.
Find the line that contains the verbose logging information for the specific connector and change the flag from
DEBUG
toOFF
.Using Workday Prism Analytics in a
log4j.properties
file as an example, change:log4j.logger.org.jitterbit.connector.verbose.logging.workdayprismanalytics=DEBUG
to
log4j.logger.org.jitterbit.connector.verbose.logging.workdayprismanalytics=OFF
Using Workday Prism Analytics in a
logback.xml
file as an example, change:<logger name="org.jitterbit.connector.verbose.logging.workdayprismanalytics" level="DEBUG"/>
to
<logger name="org.jitterbit.connector.verbose.logging.workdayprismanalytics" level="OFF"/>
- Save the file and restart the agent:
- Linux: See Restart Agent in Installing a Jitterbit Harmony Linux Agent.
- Windows: See Restart Agent in Installing a Jitterbit Harmony Windows Agent.
Viewing the Verbose Logs
When verbose logging is enabled, entries are written to the jitterbit-axis.log
file. Open the log file in an editor to view the entries. The log file is saved in these locations, depending on the operating system and agent version:
- Linux:
/opt/jitterbit/jitterbit-axis.log
- Windows with a 32-bit Private Agent:
C:\Program Files (x86)\Jitterbit Agent\log\jitterbit-axis.log
- Windows with a 64-bit Private Agent:
C:\Program Files\Jitterbit Agent\log\jitterbit-axis.log
To find entries, search for the terms DEBUG
or verbose.logging
in the file. Entries may include messaging, schemas, and other information that can be used when debugging. An excerpt is shown here:
2020-12-07 15:06:31,445 +0530 http-nio-127.0.0.1-46912-exec-9 DEBUG org.jitterbit.connector.verbose.logging.epicorerp.VerboseLogger:22 - org.jitterbit.connector.epicor.EpicorClient.PATCH, msg: {"method: ":"PATCH","headers: ":"Authorization: Basic bWFuYWdlcjomd1I3aWk1IQ==\nkeep-alive: true\n","URI: ":"https://sample.developer.epicor.com/%2Fserver%2Fapi%2Fv1/BaqSvc/PartsAdvancedBPM","requestPayload: ":"{\"Part_Company\":\"EPIC01\",\"SysRowID\":\"470bf6e7-cba1-4a7b-6ee7-a33b015c3cbc\",\"Part_PartNum\":\"001_MPCons\",\"Part_UserDecimal1\":\"0\"}"} 2020-12-07 15:06:31,742 +0530 http-nio-127.0.0.1-46912-exec-9 DEBUG org.jitterbit.connector.verbose.logging.epicorerp.VerboseLogger:22 - org.jitterbit.epicor.adapter.common.CommonResponseGenerator.statusCode, msg: 200 2020-12-07 15:06:31,742 +0530 http-nio-127.0.0.1-46912-exec-9 DEBUG org.jitterbit.connector.verbose.logging.epicorerp.VerboseLogger:22 - org.jitterbit.epicor.adapter.common.CommonResponseGenerator.responsePayload, msg: { "odata.metadata":"https://sample.developer.epicor.com/server/api/v1/BaqSvc/PartsAdvancedBPM/$metadata#Epicor.DynamicQuery.QueryResults","value":[ { "Part_Company":"EPIC06","Part_PartNum":"001_MPCons","Part_UserChar1":"","Part_UserDecimal1":"0","RowMod":"","RowIdent":"38ca34b4-2440-4d3d-ac3b-177b610f01ac","SysRowID":"470bf6e7-cba1-4a7b-6ee7-a33b015c3cbc" } ] }