Skip to content

Lightrun Dynamic Logs overview

When adding Lightrun dynamic logs, it is not required to relaunch the application or release a separate version for debugging. Lightrun logs are added dynamically during runtime, and the log output is visible immediately following insertion in the running code.

Once a Lightrun dynamic log has been inserted into an application, its output is printed to the agent’s standard output, for example, in Java the output is printed to the standard logging framework by the java.util.logging logger. This enables you to view Lightrun logs in the context of pre-existing log statements, which might provide further clues towards investigating and solving issues.

Typical use cases

With Lightrun dynamic logs, you can:

  • Troubleshoot live applications by dynamically adding logs anywhere in the application code.
  • Add as many logs as you want until you resolve an issue, using simple or complex conditional statement.
  • Add as many logs as you need until you identify the problem.
  • Add logs to multiple instances of a running production service (microservices, big data workers) using tags.
  • Explore and inspect your logs in your log analysis tool of choice: DataDog, Splunk, Elastic, etc. under the context of existing logs.
  • Print the log data straight in your IDE and analyze your code behavior locally.

Note

From release 1.39, logs are retained for 10 days after they expire. Following this period, the expired actions are automatically deleted.

Start using Lightrun Dyanmic Logs


Last update: December 18, 2024