Answers.Body: <p>Turn <code>devMode</code> on <a href="https://craftcms.com/support/dev-mode">https://craftcms.com/support/dev-mode</a></p>
  
  <p>If you want the errors to log regardless of <code>devMode</code> or not, pass in <code>true</code> as the third parameter, e.g.:</p>
  
  <p><code>Craft::log("There was an error", LogLevel::Info, true);</code></p>
  
  <p><a href="https://straightupcraft.com/articles/how-do-i-log-errors-warnings-and-info-in-my-plugins-to-a-craft-log-file">https://straightupcraft.com/articles/how-do-i-log-errors-warnings-and-info-in-my-plugins-to-a-craft-log-file</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-26T18:25:49.573Z
Answers.Text: I tried this and still am getting nothing in the log. In fact I haven't had anything show up in the log for nearly a month. Any other ideas on what could be causing this?
Answers.UserDisplayName: Daniel Boggs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-26T23:18:12.990Z
Answers.Text: Daniel: What have you tried? Guessing that part of your plugin isn't firing. I'm assuming you're not the original poster since it was marked as solved? You might want to try posting your code in a new topic and we'll give you some help.
Answers.UserDisplayName: RitterKnight
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-27T18:27:54.120Z
Answers.Text: I have the same issue as @DanielBoggs, no matter what I do,   Craft::log("test", LogLevel::Info, true); Never prints to the log.  although the log is filling up with all kinds of info while running in devMode.
Answers.UserDisplayName: Tyguy7
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-17T03:24:26.667Z
Answers.LastActivityDate: 2016-07-17T03:24:26.667Z
Answers.UserDisplayName: andrew.welch
Body: <p>I have a plugin called EducatorEntriesPlugin, and in the controller of the plugin, I have a method called actionExportEducator. In this method, I am logging an error using the code below, but when the action is called, the error is not logged into the log file, why might this be?</p>
  
  <pre><code>Craft::log("There was an error")
  </code></pre>
  
  <p>I also did <code>EducatorEntriesPlugin::log</code>, that doesn't do anything either.</p>
  
Tags: <logging><logs>
Title: Craft Error Logging not doing anything?
ThreadText: # Craft Error Logging not doing anything?
  
  (Asked by: username_0 on 2016-07-17)
  
  I have a plugin called EducatorEntriesPlugin, and in the controller of the plugin, I have a method called actionExportEducator. In this method, I am logging an error using the code below, but when the action is called, the error is not logged into the log file, why might this be?
  
  ```
  Craft::log("There was an error")
  
  ```
  
  I also did `EducatorEntriesPlugin::log`, that doesn't do anything either.
  
  **Tags:** logging, logs
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-17. Score: 7 | Accepted answer
  
  Turn `devMode` on <https://craftcms.com/support/dev-mode>
  
  If you want the errors to log regardless of `devMode` or not, pass in `true` as the third parameter, e.g.:
  
  `Craft::log("There was an error", LogLevel::Info, true);`
  
  <https://straightupcraft.com/articles/how-do-i-log-errors-warnings-and-info-in-my-plugins-to-a-craft-log-file>
  
  > **Comments:**
  > **username_2**: I tried this and still am getting nothing in the log. In fact I haven't had anything show up in the log for nearly a month. Any other ideas on what could be causing this?  
  > **username_3**: username_2: What have you tried? Guessing that part of your plugin isn't firing. I'm assuming you're not the original poster since it was marked as solved? You might want to try posting your code in a new topic and we'll give you some help.  
  > **username_4**: I have the same issue as @username_2, no matter what I do,   Craft::log("test", LogLevel::Info, true); Never prints to the log.  although the log is filling up with all kinds of info while running in devMode.  
  
  ---
  
  