Jump to content

performance impact: servers log every single in-game event to dcs.log, single player does not


Recommended Posts

Posted

If you launch a mission (no scripts) in single player, you will not notice any logged events in dcs.log, unless you explicitly request them via scripting. That's good.

However, if on your local game you launch the same mission as a multiplayer server, or you put the mission (no scripting) on a dedicated server, then your logs fill with messages like these:

2024-05-31 15:57:28.565 INFO    Scripting (Main): event:type=mission start,event_id=1,t=0,linked_event_id=0,ta=28800,
2024-05-31 15:57:28.565 INFO    Scripting (Main): event:linked_event_id=0,t=0,event_id=2,type=took control,
2024-05-31 15:58:14.783 INFO    Scripting (Main): event:type=engine startup,initiatorPilotName=TAW_Zyll,place=Kobuleti,t=42.808,placeDisplayName=Kobuleti,initiator_unit_type=UH-1H,initiator_object_id=16777729,linked_event_id=0,event_id=8,initiator_coalition=2,initiator_ws_type1=1,initiatorMissionID=2,
2024-05-31 15:58:14.792 INFO    Scripting (Main): event:initiator_unit_type=UH-1H,type=under control,initiator_object_id=16777729,targetMissionID=2,target=Rotary-1-2,t=42.808,initiatorPilotName=TAW_Zyll,initiator_coalition=2,

take a Huey door gunner firing into a group, and you can imagine the logs just get filled with unnecessary messages, which can hinder performance. If there is a server configuration to remove these event logs, I'd love to know it. If anyone is not seeing these messages running as a server (local install or dedicated), I'd like to compare notes.

Can something like the above be used to REDUCE the amount of logging? What I don't want to do is eliminate mission makers' ability to actually log events to troubleshoot their scripts, but I don't want events to fill the logs when I didn't ask for them

thanks,

  • Like 1
  • Thanks 1
  • 3 weeks later...
Posted

Let me play with that a bit. I want to still see errors and informational messages that help mission makers troubleshoot their scripts, I just don't want to see all the other stuff that is being obsessively logged. Thx Gater.

Zyll @ TAW

  • Like 1
  • 7 months later...
Posted

While not exactly what you ask for, you can mute log messages with levels below warning, only for the missions scripting environment (instead of all info messages as above example from Gater):

log.set_output("dcs", "SCRIPTING", log.WARNING, log.FULL)
  • Like 1
  • 1 month later...
Posted
On 1/31/2025 at 11:20 AM, Actium said:

While not exactly what you ask for, you can mute log messages with levels below warning, only for the missions scripting environment (instead of all info messages as above example from Gater):

log.set_output("dcs", "SCRIPTING", log.WARNING, log.FULL)

how does that work exactly? is it looking for the word "SCRIPTING" in the log message and suppressing it? 

On 1/26/2025 at 3:54 AM, LittleNose said:

Hi Zyll, did you find a suitable way to do this?

unfortunately not, I just have been getting by with excessively large DCS.log on the dedicated server. tools like klogg have helped to filter the log from a readability point of view, but I'm still concerned about the performance impact

Posted

unfortunately the solutions proposed by  @Actium and @Gater45988 both take away too much from the log. If there's a script error or warning or info I'd like to still get those, in order to debug any issues. It's just all the event spam which only shows on a multiplayer server that I'd like to suppress

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...