# Client logging

**URL:** <https://discourse.chef.io/t/client-logging/4195>\
**Category:** Chef Infra (archive)\
**Created:** [July 15, 2013, 8:10am UTC](https://discourse.chef.io/t/client-logging/4195 "2013-07-15T08:10:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Florian\_Hehlen](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/florian_hehlen/32/303_2.png) [@Florian\_Hehlen](https://discourse.chef.io/u/Florian_Hehlen)\
**Post date:** [July 15, 2013, 8:10am UTC](https://discourse.chef.io/t/client-logging/4195/1 "2013-07-15T08:10:15Z")

</div>

Hi,

Is there a way to have the knife and client run output logged in a structured and enforced way? I need this for investigating/debugging issues but will also need this for change management audit reasons.

Cheers,  
Florian

LEGAL DISCLAIMER  
This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word “misdirected” as the subject and delete this communication from your system.

---

<div class="post-metadata">

**Author:** ![coderanger](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/coderanger/32/5_2.png) [@coderanger](https://discourse.chef.io/u/coderanger)\
**Post date:** [July 15, 2013, 10:01pm UTC](https://discourse.chef.io/t/client-logging/4195/2 "2013-07-15T22:01:49Z")

</div>

On Jul 15, 2013, at 1:10 AM, Florian Hehlen wrote:

> Hi,
> 
> Is there a way to have the knife and client run output logged in a structured and enforced way? I need this for investigating/debugging issues but will also need this for change management audit reasons.

You'll have to be more specific, you can certainly make your own output formatter to log in whatever format you want if you have some established style.

--Noah

---

<div class="post-metadata">

**Author:** ![Florian\_Hehlen](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/florian_hehlen/32/303_2.png) [@Florian\_Hehlen](https://discourse.chef.io/u/Florian_Hehlen)\
**Post date:** [July 16, 2013, 7:24am UTC](https://discourse.chef.io/t/client-logging/4195/3 "2013-07-16T07:24:42Z")

</div>

Noah,

I am mostly wondering about what Chef does by default and what can be done through configuration. I have not found any docs on this or even on the possibility to add my own formatter.

Cheers,

-----Original Message-----  
From: Noah Kantrowitz [[mailto:noah@coderanger.net](mailto:noah@coderanger.net)]  
Sent: 16 July 2013 00:02  
To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
Subject: [chef] Re: client logging

On Jul 15, 2013, at 1:10 AM, Florian Hehlen wrote:

> Hi,
> 
> Is there a way to have the knife and client run output logged in a structured and enforced way? I need this for investigating/debugging issues but will also need this for change management audit reasons.

You'll have to be more specific, you can certainly make your own output formatter to log in whatever format you want if you have some established style.

--Noah

LEGAL DISCLAIMER  
This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system.

---

<div class="post-metadata">

**Author:** ![Nathaniel\_Eliot](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/nathaniel_eliot/32/506_2.png) [@Nathaniel\_Eliot](https://discourse.chef.io/u/Nathaniel_Eliot)\
**Post date:** [July 16, 2013, 2:14pm UTC](https://discourse.chef.io/t/client-logging/4195/4 "2013-07-16T14:14:03Z")

</div>

[About Handlers](http://docs.opscode.com/essentials_handlers.html) has a lot of the  
basics. Probably what you're looking for (for integration) is the  
JsonFile handler.

Cheers,

--  
Nathaniel Eliot  
T9 Productions

On Tue, Jul 16, 2013 at 2:24 AM, Florian Hehlen  
[Florian.Hehlen@mri-group.com](mailto:Florian.Hehlen@mri-group.com) wrote:

> Noah,
> 
> I am mostly wondering about what Chef does by default and what can be done through configuration. I have not found any docs on this or even on the possibility to add my own formatter.
> 
> Cheers,
> 
> -----Original Message-----  
> From: Noah Kantrowitz [[mailto:noah@coderanger.net](mailto:noah@coderanger.net)]  
> Sent: 16 July 2013 00:02  
> To: [chef@lists.opscode.com](mailto:chef@lists.opscode.com)  
> Subject: [chef] Re: client logging
> 
> On Jul 15, 2013, at 1:10 AM, Florian Hehlen wrote:
> 
> > Hi,
> > 
> > Is there a way to have the knife and client run output logged in a structured and enforced way? I need this for investigating/debugging issues but will also need this for change management audit reasons.
> 
> You'll have to be more specific, you can certainly make your own output formatter to log in whatever format you want if you have some established style.
> 
> --Noah
> 
> LEGAL DISCLAIMER  
> This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system.
