This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
HyperActive
So guys i am trying to add a custom to the server and i am using java.util.log.Logger
now i want to make an exception :
Logger.error("Error: could not update database: ", e);
so the Logger.error is not defiened for this type of logger anybody knows what type should i use to make an exception? I have been googling and things like Logger.fatal don't work aswell
And one more question i had this LOGGER.info( "Error updating name for player " + player.getName() + ". Error: " + e); which did not work
and i changed it to this Logger.getLogger("Info").info( "Error updating name for player " + player.getName() + ". Error: " + e); is this ok and will it work i mean the error is gone but does it have the same function?
If you need pictures tell me and i will then edit the post with pictures i hope you can understand what i mean :P
3 answers to this question
Recommended Posts