---
title: Generate New Relic agent logs for troubleshooting
source: https://docs.newrelic.com/docs/new-relic-solutions/solve-common-issues/troubleshooting/generate-new-relic-agent-logs-troubleshooting
---

Some [New Relic solutions](https://newrelic.com/instant-observability/) require manual installation of an agent. Most agents include built-in tools to generate detailed logs for troubleshooting, auditing, and diagnostics.

Related docs:

-   For general agent troubleshooting, see [Not seeing data](https://docs.newrelic.com/docs/agents/manage-apm-agents/troubleshooting/not-seeing-data).
-   Learn about [New Relic Diagnostics](https://docs.newrelic.com/docs/using-new-relic/cross-product-functions/troubleshooting/new-relic-diagnostics): a utility that automatically detects common problems.

## APM agent logging [#apm-install]

-   [Go agent logs](https://docs.newrelic.com/docs/agents/go-agent/configuration/go-agent-logging)
-   [Java logs](https://docs.newrelic.com/docs/agents/java-agent/troubleshooting/generate-debug-logs-troubleshooting-java)
-   [.NET logs](https://docs.newrelic.com/docs/agents/net-agent/troubleshooting/generate-logs-troubleshooting-net)
-   [Node.js logs](https://docs.newrelic.com/docs/agents/nodejs-agent/troubleshooting/generate-trace-log-troubleshooting-nodejs)
-   [PHP logs](https://docs.newrelic.com/docs/agents/php-agent/troubleshooting/generating-logs-troubleshooting-php)
-   [Python logs](https://docs.newrelic.com/docs/agents/python-agent/troubleshooting/python-agent-logging)
-   [Ruby logs](https://docs.newrelic.com/docs/agents/ruby-agent/troubleshooting/generating-logs-troubleshooting-ruby)

## Infrastructure agent logging [#infra-install]

See [Infrastructure agent logs](https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/troubleshooting/generate-logs-troubleshooting-infrastructure).

## Mobile agent logging [#mobile-install]

-   [Android log settings](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-android/api-guides/android-agent-configuration-feature-flags#logging)
-   [iOS log settings](https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile-ios/installation/ios-manual-installation#logging)

## Logging for other New Relic tools [#other]

For log generation and troubleshooting instructions for tools not listed here, see the [docs for a specific solution in New Relic Instant Observability](https://newrelic.com/instant-observability/).
