# - type : file (mandatory) type of log input source (tcp / udp / file) # port / path : (mandatory) Set port if type is tcp or udp. Set path if type is file # service : (mandatory) name of the service owning the log # source : (mandatory) attribute that defines which integration is sending the log # sourcecategory : (optional) Multiple value attribute. Can be used to refine the source attribute # tags: (optional) add tags to each log collected
- type: file
path: c:/log/inv-api-price.log
service: demo-logback
source: java
sourcecategory: sourcecode
3、将下载的第二个jar包 放到 一个目录下,比如 c:\datadog\dd-java-agent.jar。
4、新增本地ide启动参数(vm arguments)
-javaagent:C:\0_Study\3_datadog\dd-java-agent.jar
-Ddd.profiling.enabled=true
-XX:FlightRecorderOptions=stackdepth=256
-Ddd.logs.injection=true
-Ddd.trace.sample.rate=1
-Ddd.env=test
-Ddd.version=1.0
-Ddd.service=demo-name
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/226153.html原文链接:https://javaforall.net
