vinanrra / Docker-7DaysToDie

7 days to die server using LinuxGSM in Docker with backups, monitor, auto-installable mods and more
GNU General Public License v3.0
236 stars 47 forks source link

[FEATURE] Allow redirect of STEAM logs #120

Closed irobot73 closed 2 years ago

irobot73 commented 2 years ago

Is your feature request related to a problem? Please describe.

Describe the solution you'd like The Steam(CMD) logs are still embedded into the Docker image instead of redirected via VOLUMES to allow easier access

7D2D-tester        | [----] Update complete, launching Steamcmd...
7D2D-tester        | Redirecting stderr to '/home/sdtdserver/.local/share/Steam/logs/stderr.txt'
7D2D-tester        | [  0%] Checking for available updates...

Describe alternatives you've considered Add another VOLUMES (optional?) entry that will re-link the STEAM\LOGS path

Additional context EX:

    volumes:
      - /nas/Data/test/Steam/logs:/home/sdtdserver/.local/share/Steam/logs/

      - /nas/Data/test/[Games]/7days2die/svr:/home/sdtdserver/serverfiles/                  # 7DaysToDie server config files.
      - /nas/Data/test/[Games]/7days2die/userData:/home/sdtdserver/.local/share/7DaysToDie/ # 7DaysToDie saves, where maps are store.
      - /nas/Data/test/LGSM/Logs:/home/sdtdserver/log/                                      # 7DaysToDie server log files.
      - /nas/Data/test/LGSM/Backup:/home/sdtdserver/lgsm/backup/                            # 7DaysToDie server backups files.
      - /nas/Data/test/LGSM/Config:/home/sdtdserver/lgsm/config-lgsm/sdtdserver/ 
vinanrra commented 2 years ago

Those logs are already inside:

- /nas/Data/test/LGSM/Logs:/home/sdtdserver/log/ # 7DaysToDie server log files.

But i will check it, because i don't have any container up.

irobot73 commented 2 years ago

Those logs are already inside:

- /nas/Data/test/LGSM/Logs:/home/sdtdserver/log/ # 7DaysToDie server log files.

But i will check it, because i don't have any container up.

Steam logs...LGSM have been in/working as expected.

For giggles, I did add in the Steam/Logs to the VOLUMES & I do see the files getting generated when installing+ the server files. Might just add a blurb into the documentation about it?

If my old eyes missed it, I apologize for the wasted 0/1s :)

    volumes:
      - /nas/Data/test/[Games]/7days2die/svr:/home/sdtdserver/serverfiles/                  # 7DaysToDie server config files.
      - /nas/Data/test/[Games]/7days2die/userData:/home/sdtdserver/.local/share/7DaysToDie/ # 7DaysToDie saves, where maps are store.
      - /nas/Data/test/LGSM/Logs:/home/sdtdserver/log/                                      # 7DaysToDie server log files.
      - /nas/Data/test/LGSM/Backup:/home/sdtdserver/lgsm/backup/                            # 7DaysToDie server backups files.
      - /nas/Data/test/LGSM/Config:/home/sdtdserver/lgsm/config-lgsm/sdtdserver/            # LGSM config files.

-->     - /nas/Data/test/Steam/logs:/home/sdtdserver/.local/share/Steam/logs

Screenshot from 2022-06-17 15-22-30

vinanrra commented 2 years ago

I will check ASAP, was fixing other issue

vinanrra commented 2 years ago

The file inside .local/share/Steam/logs/appinfo_log.txt it's already redirected to LGSM/Steam/logs, the others files I don't think they are necessary (maybe fore more debugging if something fail), I will add it because it takes just 5 sec to show the logs.

irobot73 commented 2 years ago

Odd. It wasn't until I added that volume/re-direct that I had access to any Steam logs. If LGSM is supposed to redirect, I'm not currently seeing it (or it's not obvious [no STEAM folder...outside of the 'new' one]

Might re-create the container from scratch+. Maybe I dorked something in the process+. Either way, apprec. your time looking into things.

Screenshot from 2022-06-22 10-12-33

vinanrra commented 2 years ago

I have been thinking about this, and I'm not going to add it, because all useful info it's already redirected, unless need it in the future I'm not going to add it, because it's going to confuse people while checking logs