|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deken.game.utils.GameLog
public class GameLog
Title: GameLog
Description: Utility for logging data to the System output or to a file.
Copyright: (c) 2010
Field Summary | |
---|---|
static boolean |
averageRate
|
static boolean |
frameRate
|
Method Summary | |
---|---|
static void |
log(java.lang.Class cls,
java.lang.Exception e)
Log the exception to a file or console. |
static void |
log(java.lang.Class cls,
java.lang.String logText)
Log the text to a file or console. |
static void |
logFrame(long totalTime,
long totalUpdates,
long frameTime)
Logs the seconds game ran, frames per second (FPS) and updates per second (UPS), based if logTime and logFrames is true. |
static void |
setLogFile(java.io.File newLogFile)
Set the log file location, and enables logging to file, using java Logging. |
static void |
setLogToFile(boolean logToFile)
Enables logging to the default log file, using java Logging. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean frameRate
public static boolean averageRate
Method Detail |
---|
public static void log(java.lang.Class cls, java.lang.String logText)
cls
- logText
- Stringpublic static void log(java.lang.Class cls, java.lang.Exception e)
cls
- e
- public static void logFrame(long totalTime, long totalUpdates, long frameTime)
totalTime
- totalUpdates
- frameTime
- public static void setLogFile(java.io.File newLogFile)
newLogFile
- Filepublic static void setLogToFile(boolean logToFile)
logToFile
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |