IW4x Network Logging

On an IW4x Dedicated Server, the following commands are available:

  • log_add: Adds an IP address to the loglist.
  • log_del: Removes an IP address from the loglist.
  • log_list: Lists all IP addresses in the loglist.
  • g_log_add: Adds an IP address to the game loglist.
  • g_log_del: Removes an IP address from the game loglist.
  • g_log_list: Lists all IP addresses in the game loglist.

These commands are useful for server owners running IW4M.

By adding the IP:Port of the machine running your instance of IW4M, IW4x can forward all events printed to the game log/console log, along with any messages that would normally be written to it. This allows IW4M to serve as your primary log storage solution, ensuring that the server itself generates no log files in the game folder.

This is especially beneficial when running IW4x in a containerized environment where the game folder, including the default log files generated by IW4x, is destroyed when the container is deleted. With network logging enabled, IW4M can save all logs to its independent database, preserving them even when the container is removed.