source: trunk/src/org/apollo/util/ApolloSystemLog.java

Last change on this file was 1040, checked in by davidb, 8 years ago

Tidy up on print statements

File size: 746 bytes
Line 
1package org.apollo.util;
2
3public class ApolloSystemLog {
4
5 public static void println(Object o) {
6 println(o.toString());
7 }
8
9 public static void print(Object o) {
10 print(o.toString());
11 }
12
13 public static void println(String message) {
14 print("Audio: " + message + "\n");
15 }
16
17 public static void print(String message) {
18 System.out.print(message);
19 }
20
21 public static void printError(String errorMessage) {
22 System.err.print("*Apollo-Error*: " + errorMessage);
23 }
24
25 public static void printException(Exception e) {
26 e.printStackTrace();
27 }
28
29 public static void printException(String errorMessage, Exception e) {
30 System.err.println("*Apollo-Error*: " + errorMessage + ". Exception stacktrace to follow:");
31 e.printStackTrace();
32 }
33}
Note: See TracBrowser for help on using the repository browser.