As your team works with Lightrun, they can dynamically insert logs to track information based on a variety of conditions.
Once a log is inserted into the application, it is printed with the help of the
java.util.logging logger. By printing into the standard logging framework, you can view the dynamic logs in the context of pre-existing log statements, which might provide further clues towards solving issues.
At the same time, a developer might want to see the log output and search and filter directly from the IDE as they work, while other users might want to see the list of logs from the web interface in table format.
Users can control the piping of the output from the plugin.
Depending on configuration, all relevant information from any logs that are added to your applications appears in the developers' consoles, in the web interface or in both. If piped only to the plugin, data will not appear in the web interface, and vice versa.
To view log data¶
To view logs from the web interface, first ensure you've configured piping from the plugin. Only data that has been configured to pipe to the web interface or to the web interface and the IDE appears in the app, meaning that if developers add actions with plugin piping only, that data does not appear here.
You can customize log prints by adding the following to the command line:
For additional agent customizations, see Agent Administration
To view log data from the app, log in from the browser and navigate to Entities->Agents Logs.
The logs screen loads, and appears similar to the following:
The following table describes the data available in this table:
Column Description AgentId The unique identifier assigned to the agent by the system Timestamp The time at which the log was created Level The severity level of the log; this is configured per log when inserted in the code Log The formatted text configured when the log is inserted and any relevant errors
For more information about logs, see Lightrun Actions.