dev

The dev sink prints log data to the console, which can generally be used for debugging or troubleshooting. After configuring the dev sink, you can set printEvents=true to view the log data sent to the sink in Loggie. In addition to the original logs received or collected by the source, the data generally contains other meta information.

Example

  1. sink:
  2. type: dev
  3. printEvents: true
  4. codec:
  5. type: json
  6. pretty: true

printEvents

fieldtyperequireddefaultdescription
printEventsboolfalsefalseWhether to print the collected logs

By default, the log of Loggie is printed in json format, and the CMD arguments can be configured -log.jsonFormat=false to facilitate viewing the output results on the log of Loggie.