Nexus Repository Manager 3 Logger Reference

Repository manager default logger levels are intended to be verbose enough to help diagnose problems should they be encountered and quiet enough to not create overly large log files.

Increasing default log output verbosity can be used when more information needs to be gathered about a problem or activity. In some cases making a logger less verbose is justified to avoid spamming the application log with noisy messages.

This article serves as a reference to some of the loggers commonly adjusted by feature area. This is not a complete list and not all loggers are available in all versions of repository manager.

LDAP

Diagnose LDAP Queries and LDAP Server Connection Stack Traces

  • set logger org.sonatype.nexus.ldap to DEBUG

Repository Formats

NuGet

  • set com.sonatype.nexus.repository.nuget to DEBUG

Webhooks

Diagnose Outbound Webhook Payloads

  • set org.sonatype.nexus.internal.webhooks to DEBUG

Example log entries:

2016-12-14 17:09:43,902+0000 DEBUG [event-1-thread-2] admin org.sonatype.nexus.internal.webhooks.WebhookServiceImpl - Sending webhook request: WebhookRequest{id='9d80527e-8f7d-455a-a86b-191e9ac7ab9e', webhook=rm:repository:component, payload=org.sonatype.nexus.repository.webhooks.RepositoryComponentWebhook$RepositoryComponentWebhookPayload@2a89735b, url=http://requestb.in/abcd}
2016-12-14 17:09:44,420+0000 DEBUG [event-1-thread-2] admin org.sonatype.nexus.internal.webhooks.WebhookServiceImpl - Sending POST request: POST http://requestb.in/abcd HTTP/1.1
2016-12-14 17:09:44,736+0000 DEBUG [event-1-thread-3] admin org.sonatype.nexus.internal.webhooks.WebhookServiceImpl - Sending webhook request: WebhookRequest{id='29608664-b00b-4e1a-af3d-d0ced495fd57', webhook=rm:repository:component, payload=org.sonatype.nexus.repository.webhooks.RepositoryComponentWebhook$RepositoryComponentWebhookPayload@9ef9b8, url=http://requestb.in/abcd}
2016-12-14 17:09:44,760+0000 DEBUG [event-1-thread-3] admin org.sonatype.nexus.internal.webhooks.WebhookServiceImpl - Sending POST request: POST http://requestb.in/abcd HTTP/1.1
2016-12-14 17:09:44,765+0000 DEBUG [event-1-thread-2] admin org.sonatype.nexus.internal.webhooks.WebhookServiceImpl - Response status: HTTP/1.1 200 OK
2016-12-14 17:09:44,996+0000 DEBUG [event-1-thread-3] admin org.sonatype.nexus.internal.webhooks.WebhookServiceImpl - Response status: HTTP/1.1 200 OK

If there is an error in posting to the webhook url, then you will see an error like the following:

2016-12-14 16:40:34,567+0000 ERROR [event-1-thread-16] admin org.sonatype.nexus.internal.webhooks.WebhookServiceImpl - Failed to send webhook request: WebhookRequest{id='071b719e-683d-4fb4-a031-12e292ed4ec0', webhook=rm:repository:component, payload=org.sonatype.nexus.repository.webhooks.RepositoryComponentWebhook$RepositoryComponentWebhookPayload@76beefa6, url=http://requestb.in/abcd}
org.apache.http.client.HttpResponseException: Not found

UI

Diagnose UI Search Inbound JSON Payloads

  • set org.sonatype.nexus.coreui.SearchComponent to DEBUG

SAML

Log SAML Related Activity

  • set com.sonatype.nexus.saml  to DEBUG
  • set org.keycloak.saml to DEBUG

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.