1 16 19 20 package org.apache.pluto.portalImpl.services.log; 21 22 import org.apache.pluto.services.log.Logger; 23 24 29 public class StandardOutLogger implements Logger { 30 31 public StandardOutLogger() { 32 } 33 34 public boolean isDebugEnabled() { 35 return true; 36 } 37 38 public boolean isInfoEnabled() { 39 return true; 40 } 41 42 public boolean isWarnEnabled() { 43 return true; 44 } 45 46 public boolean isErrorEnabled() { 47 return true; 48 } 49 50 public void debug(String aMessage) { 51 System.out.println(aMessage); 52 } 53 54 public void debug(String aMessage, Throwable aThrowable) { 55 System.out.println(aMessage); 56 aThrowable.printStackTrace(); 57 } 58 59 public void info(String aMessage) { 60 System.out.println(aMessage); 61 } 62 63 public void warn(String aMessage) { 64 System.out.println(aMessage); 65 } 66 67 public void error(String aMessage) { 68 System.out.println(aMessage); 69 } 70 71 public void error(String aMessage, Throwable aThrowable) { 72 System.out.println(aMessage); 73 aThrowable.printStackTrace(); 74 } 75 76 public void error(Throwable aThrowable) { 77 aThrowable.printStackTrace(); 78 } 79 80 } 81 | Popular Tags |