~tapaal-contributor/tapaal/engine-option-matrix-dev

« back to all changes in this revision

Viewing changes to src/dk/aau/cs/debug/Logger.java

  • Committer: ptaankvist at gmail
  • Date: 2020-08-10 09:47:18 UTC
  • mfrom: (1068.1.10 tapaal)
  • Revision ID: ptaankvist@gmail.com-20200810094718-5ml66wkuy1m2dpl0
add game as option for the engines and merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
                if (enableDebug) {
22
22
                        logDevice.println(log);
23
23
                }
24
 
 
25
24
        }
26
25
 
 
26
    public static void log(Exception e) {
 
27
        if (enableDebug) {
 
28
            e.printStackTrace();
 
29
        }
 
30
    }
 
31
 
27
32
        public static void log(Object log) {
28
33
                if (enableDebug) {
29
34
                        logDevice.println(log.toString());
30
35
                }
31
 
 
32
36
        }
33
37
 
34
38
}