title: How logging to be done into a file in a specific folder
body: <p>Some macOS apps write their logs into a folder like /Library/Logs or ~/Library/Logs? How this can be achieved?</p>
  
  <p>I tried by creating a folder in ~/Library/Logs using FileManager.createDirectory. But I think creating a file and write every time on it using file manager functions will make the app more complex.</p>