Answers.Body: <p>Yes, it is possible, but you have to use some bash magic. For disabling it is:</p>
  
  <pre><code>echo '{"logging":0}' | cv api Setting.create --in=json
  </code></pre>
  
  <p>(In case you forget, <code>cv help api</code> shows an example of the bash trick)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-02T02:23:02.660Z
Answers.Text: actually, I played around with it after creating this question and it can be done without any bash magic: `cv api setting.create logging=1` to enable, logging=0 to disable.
Answers.UserDisplayName: lcdservices
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-04-01T19:16:43.087Z
Answers.LastActivityDate: 2018-04-01T19:16:43.087Z
Answers.UserDisplayName: Kainuk - CiviCooP
Body: <p>Can the command line cv tool be used to enable/disable logging?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-11T11:59:33.557Z
Comments.Text: You can also disable logging via the API - see https://civicrm.stackexchange.com/questions/28019/civi-5-9-db-error-no-such-table-cannot-disable-logging
Comments.UserDisplayName: Davy Ivins
Tags: <logging><cv>
Title: Is it possible to enable/disable logging using cv?
ThreadText: # Is it possible to enable/disable logging using cv?
  
  (Asked by: username_0 on 2018-03-30)
  
  Can the command line cv tool be used to enable/disable logging?
  
  **Tags:** logging, cv
  
  > **Comments:**
  > **username_1**: You can also disable logging via the API - see https://civicrm.stackexchange.com/questions/28019/civi-5-9-db-error-no-such-table-cannot-disable-logging  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-04-01. Score: 1
  
  Yes, it is possible, but you have to use some bash magic. For disabling it is:
  
  ```
  echo '{"logging":0}' | cv api Setting.create --in=json
  
  ```
  
  (In case you forget, `cv help api` shows an example of the bash trick)
  
  > **Comments:**
  > **username_0**: actually, I played around with it after creating this question and it can be done without any bash magic: `cv api setting.create logging=1` to enable, logging=0 to disable.  
  
  ---
  
  