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
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hoodservices
https://campsite.bio/utchihaamkt
i am looking forward for people willing to join me this project... reply here !!
Hello , i have a pc that i currently not use at alll with intel xeon e3 1245 v2 3.40 ghz server 8gb ddr3 and 500gb hdd internet connection 500mbs up/dwn ... i would like to ask if it is enought to start an interlude high rate pvp server that can host 100-400 players without problems ? also is there a big difference between ssd / hdd ?
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