This feature is supported for both UI Kit and Custom UI across all environments, including production. It captures console.error, uncaught exceptions, and unhandled promise rejections.
App logs give you the information you need in order to debug
your apps. Logs are enabled by default when a user installs your app, and are displayed in the
developer console. If you need to view app logs for a site where the user has disabled log access,
you can ask them to re-enable access.
App logs combine entries from your app’s functions, container services, and frontends in one stream.
Use the filters to focus on a source. Each entry’s attributes depend on where it originated.
For Isolated Cloud (IC), customers don't have the option to enable or disable log sharing access to developers in Admin Hub, and app developers can't access IC logs in the developer console. IC customers can still download the app logs from Admin Hub and share them with the developer. This is the only way for developers to get access to logs of an IC customer.
For Atlassian Government Cloud (AGC) or FedRAMP, customers can enable or disable log sharing access to developers in Admin Hub, with sharing enabled by default. For more information, see Access app logs.
The page shows app logs you have access to, with entries from different sources in the same table.
A maximum of 20 log events are displayed by default. To view more log events, select Load more logs
at the bottom of the page.
Log table
The table contains a list of your logs.
Level: Displays the log level. This can be chosen by your app, by
inserting log statements such as console.log, console.warn
in your app's code. Unhandled errors are assigned the Error level, and include both app errors and
platform errors.
Date/Time(UTC): Displays the time that the log was created in UTC.
Details: Shows a concatenated preview of the log message. Select anywhere in a
row to expand it and view the entire log message. See Log attributes for more details.
For function logs grouped by invocation, select Load logs for another invocation to see logs
for another invocation.
Log attributes
Expand a row in the log table to view the entry’s details. All backend log entries contain:
Environment: The app environment that produced the log entry.
Invocation ID: A unique identifier for the specific app invocation that generated the log lines.
Trace ID: A request identifier that can be used to track log lines across different
Forge invocations and remote API calls.
Site: The name of the site where the app was invoked from.
Atlassian app: The Atlassian app onto which the Forge app is installed.
License: The license status of the app installation, such as active, inactive, or trial.
Edition: The app edition of the installation, such as standard or advanced.
Function log entries also contain:
Module: The name of the module where the log entry was generated.
Function: The name of the function where the log entry was generated.
Container log entries also contain:
Service: The container service that produced the log entry.
Placement: The placement identifier for the service.
Container: The container that produced the log entry.
These attributes appear when you expand a frontend log.
See Frontend log limits for how Forge truncates oversized frontend log data.
Log source: Where the frontend log came from. One of console (console.error),
uncaught exception (an uncaught ErrorEvent), or unhandled rejection
(an unhandled promise rejection).
Error type: The JavaScript error name, such as TypeError or RangeError.
For console.error calls with no Error object, this is unknown.
Render type: Whether the log was emitted from a UI Kit or Custom UI frontend.
Extension type: The Forge module that rendered the frontend, for example
confluence:globalPage.
Installation ID: A unique identifier for the app installation on the site that
produced the log.
Browser name: The browser that ran the frontend, parsed from the user agent
(for example, Chrome).
Browser version: The browser version parsed from the user agent.
Operating system: The operating system parsed from the user agent
(for example, Mac OS X).
User agent: The full browser user agent string captured by the Forge frontend host.
Search for logs
You can search for logs using invocation ID, trace ID, log messages, and modules. This helps
narrow down log search results.
To search for logs:
In the search box above, enter the attributes of the logs you're searching for.
Press Enter or select the search icon.
To clear your search results, select the X button in the search box.
To efficiently narrow your search results, use the Add to search button next to the log details
you want to filter by, such as Invocation ID, Trace ID, Function, and Site. This incorporates
those values into your search, enabling you to filter results more quickly.
Filters
You can use filters to further refine your logs.
Site: Narrows down the logs based on the site that your app is installed
onto, for example, https://your-domain.atlassian.net. You can select a maximum of 50 sites.
Environment: Narrows down the logs for a specific app environment for your Forge app.
Time range: Narrows down the logs for a specific time range that you set. Choose from
a range of predefined values, such as the Last 24 hours, or choose a more specific time interval
using the Custom option.
Source: Narrows down app logs by function or service. To focus on a container service, select it from the Service group.
Log level: Narrows down the logs based on the log level type that you set.
Atlassian app: Narrows down the metrics to show data from a specific Atlassian app if your Forge app supports multiple Atlassian apps.
More filters: Select additional filters to add to the filter bar.
Placement: Narrows down entries from a container service by placement.
Container instance: Narrows down entries from a container service by instance.
Version: Narrows down the logs based on the major version chosen.
License: Narrow down the logs based on the license status (active/inactive/trial) of your app installation if app is enabled for licensing.
Edition: Narrow down the logs based on the app edition value (standard/advanced) of your installation if app is enabled for editions.
You can't filter by Atlassian app. For example, you can't narrow down logs just for Jira
instances on a particular site.
Logs are only available for the past 30 days and all dates are in UTC.
To clear your filters, select Reset to default.
Download app logs
You can download app logs, based on the filters you've chosen.
To download app logs:
Use filters to further refine your logs as necessary.
Select the Download button.
In the menu that appears, select one of the following format options:
Logs as .csv, where data values are separated by commas, allowing for data transfer with little
or no reformatting needed.
Logs as .log, which is a zipped file that contains a .log file, making it easier
for systems to consume downloaded files programmatically.
The maximum file size when downloading logs is 100 MB.
Each downloaded log file has a maximum of 96,000 log lines.
To handle these limits, we recommend using filters before downloading logs.