1 64 65 package com.jcorporate.expresso.kernel; 66 67 74 public class ConsoleInstallLog implements InstallLog { 75 76 public ConsoleInstallLog() { 77 } 78 79 84 public void debug(String message) { 85 System.out.println("[DEBUG] Install Log: " + message); 86 } 87 88 93 public void info(String message) { 94 System.out.println("[INFO] Install Log: " + message); 95 } 96 97 102 public void warn(String message) { 103 System.out.println("[WARN] Install Log: " + message); 104 } 105 106 112 public void warn(String message, Throwable error) { 113 if (error == null) { 114 warn(message); 115 } 116 System.out.println("[WARN] Install Log: " + message + "Error message: " + error.getMessage()); 117 error.printStackTrace(); 118 } 119 120 126 public void error(String message, Throwable error) { 127 if (error == null) { 128 error(message); 129 } 130 System.out.println("[ERROR] Install Log: " + message + "Error message: " + error.getMessage()); 131 error.printStackTrace(); 132 } 133 134 139 public void error(String message) { 140 System.out.println("[ERROR] Install Log: " + message); 141 } 142 } | Popular Tags |