01: package com.sun.portal.app.filesharing.util;
02:
03: import java.util.logging.Logger;
04:
05: /**
06: * @author Alejandro Abdelnur
07: */
08: public abstract class LogUtils {
09:
10: private static LogUtils _logUtils;
11:
12: static void setInstance(LogUtils logUtils) {
13: _logUtils = logUtils;
14: }
15:
16: public static LogUtils getInstance() {
17: if (_logUtils == null) {
18: throw new IllegalStateException("LogUtils has not been set");
19: }
20: return _logUtils;
21: }
22:
23: public abstract Logger getLogger(String name);
24:
25: public abstract Logger getLogger(Class klass);
26:
27: }
|