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
Good luck with your project - from the moment you take pleasure, it's the essential.
If you manage to improve performance over specific points compared to L2J (knownlist, geoengine, movement,...), don't hesitate to share back on your topic what/why you did it and the actual performance gain, if measured.
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
Link to comment
Share on other sites
3 answers to this question
Recommended Posts