Slick Forums

Discuss the Slick 2D Library
It is currently Thu Jun 20, 2013 9:50 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Tue Mar 13, 2012 9:15 am 
Offline

Joined: Mon Feb 13, 2012 6:31 pm
Posts: 40
Hi, when my game stops due to some error, slick outputs error messages in my IDE's console like every frame per second and makes it hard to read the debug messages I write on my own. Is there any way to turn off slick's error messages or make them not repeat the same error messages million times?


Top
 Profile  
 
PostPosted: Tue Mar 13, 2012 10:56 am 
Offline
Regular
User avatar

Joined: Thu May 05, 2011 8:35 pm
Posts: 231
Location: Somewhere between the bits and bytes
In your IDE you should be able to pause execution of your program.
In eclipse, you can pause execution when running in debug mode.
Don't know about other IDEs, but i imagine it works mostly the same way.

_________________
For every new problem, a new source of solutions has come to exist.


Top
 Profile  
 
PostPosted: Tue Mar 13, 2012 11:06 am 
Offline

Joined: Mon Feb 13, 2012 6:31 pm
Posts: 40
Do you mean manually stop the program? If so, by the time I move my mouse to pause the program when an errors occured, all the logs on eclipse console are already gone and filled with slick error messages :( Slick repeatedly outputs the same error message like 100 times a sec until I terminate the process.


Top
 Profile  
 
PostPosted: Tue Mar 13, 2012 11:56 am 
Offline
Regular
User avatar

Joined: Thu May 05, 2011 8:35 pm
Posts: 231
Location: Somewhere between the bits and bytes
I mean using the button with yellow pause icon, that will halt the program.
Allowing you to read the console output and learn what exception is thrown, so you can catch it in your code, and prevent it from occurring or at least silence it so it don't spam the console.

_________________
For every new problem, a new source of solutions has come to exist.


Top
 Profile  
 
PostPosted: Wed Mar 14, 2012 5:09 pm 
Offline

Joined: Mon Feb 13, 2012 6:31 pm
Posts: 40
I wanted slick(or maybe its opengl's nature) to spam messages when error happnes so I can read trace logs and see what was happening before errror occured, but thanks :)


Top
 Profile  
 
PostPosted: Wed Mar 14, 2012 7:57 pm 
Offline
Site Admin

Joined: Mon Dec 08, 2008 2:17 pm
Posts: 140
You can redirect the slick logger to log4J and then make log4J create a log file:

viewtopic.php?t=3254


Top
 Profile  
 
PostPosted: Thu Mar 15, 2012 5:24 pm 
Offline

Joined: Mon Feb 13, 2012 6:31 pm
Posts: 40
Thanks, that logger is great!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group