How do I redirect my logs to a file?

1. To redirect the logs to a file, stop your Node:

CLI Install
GUI WIndows Install
CLI Install
docker stop -t 300 storagenode
GUI WIndows Install

Elevated PowerShell:

Stop-Service storagenode

Or click the "Stop" button in the Windows Services applet on "Storj V3 Storage Node" service

2. Then edit your config.yaml (you can use nano or vi editor for Linux/MacOS or Notepad++ for Windows) to add (or change) the log location:

CLI Install
GUI Windows Install
CLI Install
log.output: "/app/config/node.log"
GUI Windows Install
log.output: winfile:///X:\Storagenode\node.log

3. Start your Node again:

CLI Install
GUI Windows Install
CLI Install
docker start storagenode

When you use this option, docker logs commands no longer show your node log. Use the file instead.

GUI Windows Install

Elevated PowerShell:

Start-Service storagenode

Or click the "Start" button in the Windows Services applet on "Storj V3 Storage Node" service