1 25 package org.ofbiz.shark.logging; 26 27 import org.ofbiz.base.util.Debug; 28 29 import org.enhydra.shark.api.internal.logging.LoggingManager; 30 import org.enhydra.shark.api.internal.working.CallbackUtilities; 31 import org.enhydra.shark.api.RootException; 32 33 39 public class DebugLoggingManager implements LoggingManager { 40 41 public static final String module = DebugLoggingManager.class.getName(); 42 protected CallbackUtilities cus = null; 43 44 public void configure(CallbackUtilities cus) throws RootException { 45 this.cus = cus; 46 } 47 48 public void error(String msg) throws RootException { 49 Debug.logError(msg, module); 50 } 51 52 public void error(String msg, RootException ex) throws RootException { 53 Debug.logError(ex, msg, module); 54 } 55 56 public void error(String channel, String msg) throws RootException { 57 Debug.logError(msg, channel); 58 } 59 60 public void error(String channel, String msg, RootException ex) throws RootException { 61 Debug.logError(ex, msg, channel); 62 } 63 64 public void warn(String msg) throws RootException { 65 Debug.logWarning(msg, module); 66 } 67 68 public void warn(String msg, RootException ex) throws RootException { 69 Debug.logWarning(ex, msg, module); 70 } 71 72 public void warn(String channel, String msg) throws RootException { 73 Debug.logWarning(msg, channel); 74 } 75 76 public void warn(String channel, String msg, RootException ex) throws RootException { 77 Debug.logWarning(ex, msg, channel); 78 } 79 80 public void info(String msg) throws RootException { 81 Debug.logInfo(msg, module); 82 } 83 84 public void info(String msg, RootException ex) throws RootException { 85 Debug.logInfo(ex, msg, module); 86 } 87 88 public void info(String channel, String msg) throws RootException { 89 Debug.logInfo(msg, channel); 90 } 91 92 public void info(String channel, String msg, RootException ex) throws RootException { 93 Debug.logInfo(ex, msg, channel); 94 } 95 96 public void debug(String msg) throws RootException { 97 Debug.logVerbose(msg, module); 98 } 99 100 public void debug(String msg, RootException ex) throws RootException { 101 Debug.logVerbose(ex, msg, module); 102 } 103 104 public void debug(String channel, String msg) throws RootException { 105 Debug.logVerbose(msg, channel); 106 } 107 108 public void debug(String channel, String msg, RootException ex) throws RootException { 109 Debug.logVerbose(ex, msg, channel); 110 } 111 } 112 | Popular Tags |