Storj IconSTORJ | Node Operator Docs
How do I redirect my logs to a file?

How do I redirect my logs to a file? #

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

docker stop -t 300 storagenode

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 (see Where can I find a config.yaml?)):

log.output: "/app/config/node.log"

You can find resulting log in the storage location.

log.output: winfile:///X:\Storagenode\node.log

3. Start your Node again:

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

Elevated PowerShell:

Start-Service storagenode

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