CubeCoders / AMPTemplates

For the AMP community to share Generic Module templates.
MIT License
93 stars 287 forks source link

Request to specify a log path for 7D2D #1113

Open NZScruffy opened 2 weeks ago

NZScruffy commented 2 weeks ago

Module Request

Note: Please try setting up a configuration yourself before raising an issue to request a configuration: https://config.getamp.sh/ ***There is a newer beta version available at https://iceofwraith.github.io/GenericConfigGen/

Game Information:

Game Title: 7 Days to Die How to obtain: https:// Suppoted OSs: Windows, Linux Supports RCON/Console input? Yes

I confirm:

Request to specify Log Path:

Please add a default log path to command-line, or ability to specify a log path in settings. The command-line argument would look like this:

-logfile 7DaysToDieServer_Data\output_log%LOGTIMESTAMP%.txt

The default dedicated server script has the location for the logs in 7DaysToDieServer_Data folder.

Reason for request:

Currently the instance stores the logs in <instance>/AMP_Logs. In order to give users access to the logs, they would have to be given access to ADS, which is a security issue. This request would allow moving the log location to a folder with user instance access.

IceOfWraith commented 2 weeks ago

You're looking at the AMP logs there. The server has its own sets of logs the will look similar. Here's a reference that might help. Haven't verified myself.

https://steamcommunity.com/app/251570/discussions/1/1734336452587854805/

Greelan commented 2 weeks ago

The log is indeed in the 7DaysToDieServer_Data directory in the instance datastore

NZScruffy commented 2 weeks ago

The log is indeed in the 7DaysToDieServer_Data directory in the instance datastore

In the 3 instances we have running, none of them have any logs in the 7DaysToDieServer_Data folder. I have noticed other users on Discord commenting the same. The logs are not there.

Greelan commented 2 weeks ago

What OS?

NZScruffy commented 2 weeks ago

What OS?

OS Linux
Platform Debian GNU/Linux 12
Greelan commented 2 weeks ago

Interesting. I have two running on ARM in docker. The 1.1 server has the log. The A21.2 server doesn't.

It's not an issue as such to add the flag, provided it doesn't then mess with the console output.

NZScruffy commented 2 weeks ago

That would be much appreciated. Thanks.

NB: We are running 1.1 also. a Vanilla non-modded, and modded. Unsure why yours has the logs and ours doesn't.

Greelan commented 2 weeks ago

Yeah, adding the -logfile line means that most of the console output disappears, which is not ideal

Greelan commented 2 weeks ago

Why don't you add a virtual dir in the instance that points to the instance's AMP_Logs dir and therefore makes it accessible in the instance file manager?