[PUP-4465] Document PUP-4201 JSON logging via --logdest Created: 2015/04/27  Updated: 2015/05/15  Resolved: 2015/04/29

Status: Closed
Project: Puppet
Component/s: Docs
Affects Version/s: PUP 3.8.0
Fix Version/s: PUP 3.8.1, PUP 4.1.0

Type: Bug Priority: Normal
Reporter: Nicholas Fagerlund Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Story Points: 1
Sprint: Language 2015-04-29
QA Contact: Kurt Wall


PUP-4201 added support for specifying --logdest /var/log/somefile.json and getting a (partial) JSON array of log message objects. This wasn't documented.

Docs for --logdest are in several files in lib/puppet/application/<NAME>.rb. The most important ones are apply, agent, and master. All three of these, at least, need edits to reflect the new feature.

This feature is quiet enough and odd enough that I believe updating the description of --logdest is the only documentation we need.

QA Risk Analysis

Probability Low
Impact Low
Risk Level Low
Test Level none

Comment by Henrik Lindberg [ 2015/04/28 ]

Thomas Hallgren Please confirm if the above is correct (as a consequence of the file logdest supporting logging to .json file)?

Comment by Thomas Hallgren [ 2015/04/28 ]

Yes, it looks correct. A file with the extension .json will always receive json output.

Comment by Henrik Lindberg [ 2015/04/28 ]

Merged to 3.x at: 6553070 and onwards to stable and master

Comment by Nicholas Fagerlund [ 2015/04/29 ]

Sweet, looks good.

Generated at Sun Jul 12 23:23:28 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.