Skip to content

Log Points

A log point is a special Tracepoint that injects a log message into your application. The log messages is logged to the standard out of the application, the agent is running on.

A log point can be configured to have conditional rules, and by default log points not be disabled after being triggers, but will only fire once every 100ms.

Create a log point

A log point can be created by selecting the 'log point' rule from the available rules.

rule selector

Now when you create a Tracepoint you will be asked for the log message to use. When creating a log message you can use curly bracers '{}' to indicate a watcher. This will be interpreted at run time and replaced in the log message.


Given this code section:

def thread_target():
    while thread_running:
        uuid_ = uuid.uuid4()

With a log point on line 8 you will can use a log message The uuid is {uuid_}. and the log message will result in The uuid is eac88501-25d6-4a78-8380-856a3cd51d53.

View Log points

You can view the log points in NerdVision in the 'Log Messages' section, under the code section.

See our blog for more details on using log points: Change log messages without restart