TorchAPI / Torch

An extensible modding framework and improved client/DS for Space Engineers. Still a work in progress!
Apache License 2.0
146 stars 76 forks source link

[FR] Windows EVENT IDs to trigger actions through windows #248

Closed Varaxian closed 2 years ago

Varaxian commented 6 years ago

SUMMARY

If a list of TORCH EVENT IDs are available (or if its utilizing .NET error IDs), actions can be triggered (such as webhook alerts) for when the server throws an error, thus minimizing the collateral damage by alerting server-admins of the error immediately.

Varaxian commented 6 years ago

For instance:

The errors listed in Torch.API.xml

    <member name="F:Torch.API.ServerState.Error">
        <summary>
        The server encountered an error.
        </summary>

Is it possible to have these events show in Windows Event Viewer?

Jimmacle commented 6 years ago

Looks like it's possible, going to leave this here for future reference: https://stackoverflow.com/questions/25725151/write-to-windows-application-event-log