Log Points¶
A log point is a special Tracepoint that injects a log message into your application. Log messages are 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 are not disabled after being triggered, 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.
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.
Example¶
Given this code section:
5 6 7 8 9 |
|
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