Valheim

Valheim

Limer (Banned) Jun 18, 2023 @ 8:02am
[?] get BepInEx logging into dedicated server's STDOUT - HOW?
Problem
I'm using NSSM[nssm.cc] to run a dedicated VH server as a service under windows but my server's logs leave out a lot of BepInEx logging stuff.

BepInEx's log "\BepInEx\LogOutput.log":
[Message: BepInEx] BepInEx 5.4.21.0 - valheim_server (30.03.2023 10:40:18) [Message: BepInEx] User is running BepInExPack Valheim version 5.4.2105 from Thunderstore [Info : BepInEx] Running under Unity v2020.3.45.6687953 [Info : BepInEx] CLR runtime version: 4.0.30319.42000 [Info : BepInEx] Supports SRE: True [Info : BepInEx] System platform: Bits64, Windows [Message: BepInEx] Preloader started [Info : BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.21.0] [Info : BepInEx] 1 patcher plugin loaded [Info : BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader] [Message: BepInEx] Preloader finished [Message: BepInEx] Chainloader ready
[Message: BepInEx] Chainloader started
[Info : BepInEx] 3 plugins to load
[Info : BepInEx] Loading [NoAFKEvents 1.0.1]
[Info : BepInEx] Loading [Display BepInEx Info In-Game 2.0.1]
[Info : BepInEx] Loading [Server Devcommands 1.52]
[Message: BepInEx] Chainloader startup complete
[Info : Unity Log] 06/18/2023 16:00:23: Starting to load scene:start

VS.

Server's console/STDOUT captured by NSSM and saved to rotating logs:
[Message: BepInEx] BepInEx 5.4.21.0 - valheim_server (30.03.2023 10:40:18) [Message: BepInEx] User is running BepInExPack Valheim version 5.4.2105 from Thunderstore [Info : BepInEx] Running under Unity v2020.3.45.6687953 [Info : BepInEx] CLR runtime version: 4.0.30319.42000 [Info : BepInEx] Supports SRE: True [Info : BepInEx] System platform: Bits64, Windows [Message: BepInEx] Preloader started [Info : BepInEx] Loaded 1 patcher method from [BepInEx.Preloader 5.4.21.0] [Info : BepInEx] 1 patcher plugin loaded [Info : BepInEx] Patching [UnityEngine.CoreModule] with [BepInEx.Chainloader] [Message: BepInEx] Preloader finished Fallback handler could not load library <SERVERPATH>/valheim_server_Data/Mono/data-0000009569A6D020.dll 06/18/2023 16:00:23: Starting to load scene:start

^^ some important information is missing there.


What I've tried so far

Edited the server's "BepInEx.cfg" but couldn't find any option that helped.
[Harmony.Logger] LogChannels = Warn, Error -->> Info, IL, Warn, Error [Logging] LogConsoleToUnityLog = false -->> true [Logging.Console] Enabled = false -->> true StandardOutType = Auto -->> tried "ConsoleOut" & "StandardOut" ForceBepInExTTYDriver -->> false

Enabled/disabled a console in NSSM's configuration ("Process tab")[nssm.cc] for the server - didn't change anything.


Anybody got any solutions/ideas?
What I find especially odd is that both logs contain some parts from vanilla & BepInEx but none contain all stuff... (BepInEx has a config to control some of that, but still.)

1. Do your server's STDOUT's contain all BepInEx logging stuff?
2. Is there a way to get BepInEx to write rotating, date stamped logs on it's own?
3. BepInEx can append its own log instead of overwriting but that's pretty "meh" at most.
4. Does the BepInEx logging stuff appear in VH servers STDOUT on GNU/Linux? (= maybe a window$ only problem?)
5. Do the mentioned config options change anything on your servers (on GNU/Linux)?
Last edited by Limer; Jun 18, 2023 @ 8:07am
Date Posted: Jun 18, 2023 @ 8:02am
Posts: 0