Jump to content

Recommended Posts

Posted

This is not a specific question, I'm more just wondering about best/recommended practises. Is it a good idea for a released mod to have some kind of logging system (like forge itself does), to use for recording and identifying issues? If so, where should this be? A log file of its own? Combined with something else? Just printed to the console? And how detailed should logging be? Should it only contain errors, should it record initialisation of the mod, in-game behaviour..? And if it's not particularly recommended for a mod to have a logging system, then what should be done with errors? For example I have a mod which takes user input in the config and resets it to the default if the input is invalid - it would be good to tell the user when this has happened, so where should that information go?

 

I'm sure a lot of this is just personal preference, but I'm interested to hear what other people do. I've never 'released' any code other than mods, so I have no idea what is normal in this kind of situation. Examples or recommended reading would be appreciated too. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.