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

  • 0
Posted
  On 1/14/2017 at 10:25 AM, Tryskell said:

1079 found occurences of _log, 1079 possibilties to check how a regular log is written.

 

He he he thx :P stupid post delete it

 

and solved :P

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