Jump to content

Question

Posted

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

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock