Answers.Body: <blockquote>
  <p>I removed the timestamp from the matching log file</p>
  </blockquote>
  <p>It doesn't break anything to do that, but for reference the ones with the timestamps are old logs that have been rotated and just kept for archiving.</p>
  <blockquote>
  <p>Is it possible to force civi to create a new log file</p>
  </blockquote>
  <p>It will do it on its own when there's something new to log, as long as the web server user (e.g. apache/www-data/etc) has write access to the folder. It probably does if it rotated old logs.</p>
  <p>Note if you're using the logviewer extension and it says &quot;unable to open file&quot; (or something) which is what led you to all this, then that's a known issue with the extension, because there isn't a way to tell the difference between just &quot;no new log entries yet&quot; and &quot;file is missing/error&quot;.</p>
  <p>On the other hand if you were expecting new entries, then check folder permissions.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-04T13:56:28.587Z
Answers.Text: Thank you for your help. This is a new installation of civi resulting from a fresh install of wordpress and civi on Azure followed by an import of the database from our old hosting provider.
Answers.UserDisplayName: Dave Hassall
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-04T14:04:00.110Z
Answers.Text: Thank you for your help. This is a new installation of civi resulting from a fresh install of wordpress and civi on Azure followed by an import of the database from our old hosting provider. www-data has write access to the log folder. There  is one timestamped log file and two very large logs that are not timestamped. The logs are so large because I had left Debug and Error on for another problem. Both logs without timestamps stop logging on 31 August which is the latest data that log viewer reports on. Any further help you can offer would be appreciated.
Answers.UserDisplayName: Dave Hassall
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-04T18:03:30.923Z
Answers.Text: If you have `cv` installed you could do `cv ev '$f
   = CRM_Core_Error::createDebugLogger(); echo $f->_filename;'` which will tell you where it thinks the log file is. Perhaps something changed in the config in the move.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-05T09:23:27.993Z
Answers.Text: You were right with your earlier post, it was an ownership problem and now that I have managed to cause something to be written it is working ok. Thank you
Answers.UserDisplayName: Dave Hassall
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-02T21:19:20.733Z
Answers.LastActivityDate: 2023-09-02T21:19:20.733Z
Answers.UserDisplayName: Demerit
Body: <p>I believe something is wrong with my log file in uploads/civicrm/ConfigAndLog. (civi was looking for a file without the timestamp so I removed the timestamp from the matching log file) Is it possible to force civi to create a new log file?</p>
  <p>Thank you</p>
  
Tags: <logs>
Title: force logfile switch
ThreadText: # force logfile switch
  
  (Asked by: username_0 on 2023-09-02)
  
  I believe something is wrong with my log file in uploads/civicrm/ConfigAndLog. (civi was looking for a file without the timestamp so I removed the timestamp from the matching log file) Is it possible to force civi to create a new log file?
  
  Thank you
  
  **Tags:** logs
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-09-02. Score: 1
  
  > I removed the timestamp from the matching log file
  
  It doesn't break anything to do that, but for reference the ones with the timestamps are old logs that have been rotated and just kept for archiving.
  
  > Is it possible to force civi to create a new log file
  
  It will do it on its own when there's something new to log, as long as the web server user (e.g. apache/www-data/etc) has write access to the folder. It probably does if it rotated old logs.
  
  Note if you're using the logviewer extension and it says "unable to open file" (or something) which is what led you to all this, then that's a known issue with the extension, because there isn't a way to tell the difference between just "no new log entries yet" and "file is missing/error".
  
  On the other hand if you were expecting new entries, then check folder permissions.
  
  > **Comments:**
  > **username_0**: Thank you for your help. This is a new installation of civi resulting from a fresh install of wordpress and civi on Azure followed by an import of the database from our old hosting provider.  
  > **username_0**: Thank you for your help. This is a new installation of civi resulting from a fresh install of wordpress and civi on Azure followed by an import of the database from our old hosting provider. www-data has write access to the log folder. There  is one timestamped log file and two very large logs that are not timestamped. The logs are so large because I had left Debug and Error on for another problem. Both logs without timestamps stop logging on 31 August which is the latest data that log viewer reports on. Any further help you can offer would be appreciated.  
  > **username_1**: If you have `cv` installed you could do `cv ev '$f  = CRM_Core_Error::createDebugLogger(); echo $f->_filename;'` which will tell you where it thinks the log file is. Perhaps something changed in the config in the move.  
  > **username_0**: You were right with your earlier post, it was an ownership problem and now that I have managed to cause something to be written it is working ok. Thank you  
  
  ---
  
  